The directMessage event is triggered whenever the server sends a private message directed to the bot.
directMessage
This works similarly to the messageevent but is only emitted for direct messages.
message
bot.on('directMessage', (data) => { // Your code here });
data.sender (string) β The sender of the private message.
data.content (string) β The content of the private message.
data.raw (string) β The raw message data from the server.
Last updated 1 year ago