import { useCreateDm } from '@towns-protocol/react-sdk'
function useCreateDm( config?: ActionConfig<Dms["createDM"]>, ): { data: { streamId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createDM: (userId: string, streamSettings?: { disableMiniblockCreation: boolean; lightStream: boolean; } | undefined) => Promise<{ streamId: string; }>; }
ActionConfig<Dms["createDM"]>
createDM
{ data: { streamId: string; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; createDM: (userId: string, streamSettings?: { disableMiniblockCreation: boolean; lightStream: boolean; } | undefined) => Promise<{ streamId: string; }>; }
Was this page helpful?