Skip to main content

Class: ChannelMessage

Represents a Channel message.

Hierarchy

Properties

author

author: TribullePlayer

Inherited from

TribulleMessage.author


channel

channel: Channel

The Channel the message is sent to


client

client: Client

Inherited from

TribulleMessage.client


community

community: TribulleCommunity

Community of the author that sends the message


content

content: string

Inherited from

TribulleMessage.content

Methods

reply

reply(message): void

Reply the author with a message.

Parameters

NameType
messagestring

Returns

void

Example

client.on('channelMessage', (message) => {
if (client.name === message.author.name)
return;
message.reply('Hello');
}