DMChannel

export class DMChannel extends TextBasedChannelMixin(BaseChannel, false, [
'bulkDelete',
'fetchWebhooks',
'createWebhook',
'setRateLimitPerUser',
'setNSFW',
])
export class DMChannel extends TextBasedChannelMixin(BaseChannel, false, [
'bulkDelete',
'fetchWebhooks',
'createWebhook',
'setRateLimitPerUser',
'setNSFW',
])
Represents a direct message channel between two users.

Extends

TextBasedChannelMixin(BaseChannel, false, [ 'bulkDelete', 'fetchWebhooks', 'createWebhook', 'setRateLimitPerUser', 'setNSFW',])
flags:Readonly<ChannelFlagsBitField>
The flags that are applied to the channel. This is only null in a PartialGroupDMChannel. In all other cases, it is not null.
Readonly
recipient:User | null
The recipient on the other end of the DM
recipientId:Snowflake
The recipient's id
The type of the channel
fetch(force?):Promise<this>
Fetch this DMChannel.
NameTypeOptionalDescription
forcebooleanYesWhether to skip the cache check and request the API
toString():UserMention
When concatenated with a string, this automatically returns the recipient's mention instead of the DMChannel object.