Class: ChannelMessage
Represents a Channel message.
Hierarchy
↳
ChannelMessage
Properties
author
• author: TribullePlayer
Inherited from
channel
• channel: Channel
The Channel the message is sent to
client
• client: Client
Inherited from
community
• community: TribulleCommunity
Community of the author that sends the message
content
• content: string
Inherited from
Methods
reply
▸ reply(message
): void
Reply the author with a message.
Parameters
Name | Type |
---|---|
message | string |
Returns
void
Example
client.on('channelMessage', (message) => {
if (client.name === message.author.name)
return;
message.reply('Hello');
}