onJoined
Triggered when a user joins a server.
Add The Event: bot.addEvent("onJoined")
Type: joinCommand
Base Code
bot.command({
type: "joinCommand", // onJoined type.
channel: "channelID", // The channel which the message gets sent in.
code: `code` // The code to run when someone joins.
})
Example
bot.command({
type: "joinCommand",
channel: "39459438494840494",
code: `<@$authorID> just joined the server!`
})
This requires members intent enabled!
Last updated
Was this helpful?