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)