π¦channelMessage
The channelMessage
event is triggered whenever the server sends a message to a channel.
This works similarly to the message
event but is only emitted for channel messages.
bot.on('channelMessage', (data) => {
// Your Code Here
});
Parameters
data.sender (string) β The sender of the message.
data.channel (string) β The channel where the message was sent.
data.content (string) β The content of the message.
data.raw (string) β The raw message data from the server.
Last updated