Danger
This documentation is for the discord.js 8.2 branch called discordv8 maintained by macdja38. You’re probably looking for documentation on version 9 or higher, which is available on the other docs site.
PMChannel¶
extends Channel
A PMChannel is a Private/Direct channel between the Client and another user.
Attributes¶
Functions¶
toString()¶
Returns a mention of the recipient.
sendMessage(content, options, callback)¶
Shortcut of
client.sendMessage(channel, content, options, callback)Aliases send
sendTTSMessage(content, callback)¶
Shortcut of
client.sendTTSMessage(channel, content, callback)Aliases sendTTS
sendFile(attachment, name, content, callback)¶
Shortcut of
client.sendFile(channel, attachment, name, content, callbasck)See client.sendFile
startTyping(callback)¶
Shortcut of
client.startTyping(channel, callback)stopTyping(callback)¶
Shortcut of
client.stopTyping(channel, callback)getLogs(limit, options, callback)¶
Shortcut of
client.getChannelLogs(channel, limit, options, callback)getMessage(messageID, callback)¶
Shortcut of
client.getMessage(channel, messageID, callback)