π¦directMessage
The directMessage
event is triggered whenever the server sends a private message directed to the bot.
This works similarly to the message
event but is only emitted for direct messages.
bot.on('directMessage', (data) => {
// Your code here
});
Parameters
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