description |
---|
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
bot.inviteCreateCommand({ // command
channel: 'channel id', //channel where it logs
code: `your code` //code sent to <channel>
})
bot.inviteCreateCommand({
channel: '772414449839636490',
code: `
Invite was created:
Creator: $inviteUserID
URL: $inviteURL
Channel ID: $inviteChannelID
`
})
Heres all the functions you can use in this callback: