Represents a direct message channel between two users.
Extends
BaseChannelThe time the channel was created at
Inherited from BaseChannelThe timestamp the channel was created at
Inherited from BaseChannelThe flags that are applied to the channel. This is only
null
in a PartialGroupDMChannel. In all other cases, it is not null
.The channel's id
Inherited from BaseChannelWhether this Channel is a partial This is always false outside of DM channels.
Inherited from BaseChannelThe URL to the channel
Inherited from BaseChannelCollects a single component interaction that passes the filter. The Promise will reject if the time expires.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | AwaitMessageComponentOptions | Yes | Options to pass to the internal collector |
Similar to createMessageCollector but in promise form. Resolves with a collection of messages that pass the specified filter.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | AwaitMessagesOptions | Yes | Optional options to pass to the internal collector |
Creates a Message Collector.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | MessageCollectorOptions | Yes | The options to pass to the collector |
Creates a component interaction collector.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | MessageComponentCollectorOptions | Yes | Options to send to the collector |
Deletes this channel.
Inherited from BaseChannelExample
Fetch this DMChannel.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
Indicates whether this channel is DM-based (either a or a PartialGroupDMChannel).
Inherited from BaseChannelIndicates whether this channel is sendable.
Inherited from BaseChannelIndicates whether this channel is text-based.
Inherited from BaseChannelIndicates whether this channel is a .
Inherited from BaseChannelIndicates whether this channel is .
Inherited from BaseChannelIndicates whether this channel is .
Inherited from BaseChannelSends a message to this channel.
Example
Example
Example
Name | Type | Optional | Description |
---|---|---|---|
options | string | MessagePayload | MessageCreateOptions | No | The options to provide |
Sends a typing indicator in the channel.
Returns
Resolves upon the typing status being sent *Example
When concatenated with a string, this automatically returns the recipient's mention instead of the DMChannel object.