🟦directMessage

The directMessage event is triggered whenever the server sends a private message directed to the bot.

This works similarly to the messageevent 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