PMChannel

extends Channel

A PMChannel is a Private/Direct channel between the Client and another user.


Attributes

messages

A Cache of Message objects.

recipient

The User that is the recipient of the Channel.

lastMessage

The last Message sent in the channel, may be null if no messages have been sent during the time the bound Client has been online.


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)

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)