Skip to main content

Function: resolveDMChannel()

resolveDMChannel(parameter: string, messageOrInteraction: Message<boolean> | CommandInteraction<CacheType>): Result<DMChannel, Identifiers.ArgumentChannelError | Identifiers.ArgumentDMChannelError>

Parameters

ParameterType
parameterstring
messageOrInteractionMessage<boolean> | CommandInteraction<CacheType>

Returns

Result<DMChannel, Identifiers.ArgumentChannelError | Identifiers.ArgumentDMChannelError>

Defined in

projects/framework/src/lib/resolvers/dmChannel.ts:7