🟦quit

The quit event is triggered whenever a user quits the server.

bot.on('quit', (data) => {
    // Your Code Here
});

Parameters

  • data.user (string) – The user who quit the server.

  • data.channel (string) – The channel(s) the user was in (if applicable).

  • data.reason (string) – The reason the user quit the server (if provided).

  • data.raw (string) – The raw message data from the server.

Last updated