The channelMessage event is triggered whenever the server sends a message to a channel.
channelMessage
This works similarly to the messageevent but is only emitted for channel messages.
message
bot.on('channelMessage', (data) => { // Your Code Here });
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 1 year ago