bot.onInviteCreate
An event that gets executed, if the bot sees an invite creation on a server. To let the bot listen to the event, add one bot.onInviteCreate() callback inside your mainfile.
This callback allows the bot to log every time an invite is created for the current server

Usage:

1
bot.inviteCreateCommand({ // command
2
channel: 'channel id', //channel where it logs
3
code: `your code` //code sent to <channel>
4
})
Copied!

Example Command:

1
bot.inviteCreateCommand({
2
channel: '772414449839636490',
3
code: `
4
Invite was created:
5
Creator: $inviteUserID
6
URL: $inviteURL
7
Channel ID: $inviteChannelID
8
`
9
})
Copied!
Heres all the functions you can use in this callback:
Last modified 1mo ago
Copy link
Edit on GitHub