Skip to content

DMChannel

DMChannel ⇐ TextBasedChannels

Represents a direct message channel in Discord.

Kind: global class
Extends: TextBasedChannels

new DMChannel([data], [guildId], client)

Constructs a new instance of the class.

ParamTypeDefaultDescription
[data]ObjectThe data for the DM channel.
[guildId]string | nullnullThe ID of the guild that the DM channel belongs to.
clientClientThe client that instantiated this DM channel.