Represents a direct message channel between two users.
Extends
TextBasedChannelMixin(BaseChannel, false, [ 'bulkDelete', 'fetchWebhooks', 'createWebhook', 'setRateLimitPerUser', 'setNSFW',])The flags that are applied to the channel. This is only
null in a PartialGroupDMChannel. In all other cases, it is not null.Collects 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 |
Fetch this DMChannel.
| Name | Type | Optional | Description |
|---|---|---|---|
| force | boolean | Yes | Whether to skip the cache check and request the API |
Sends 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.