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

Usage:

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

Example Command:

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