Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.02 KB

bot.oninvitecreate.md

File metadata and controls

43 lines (34 loc) · 1.02 KB
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.

bot.onInviteCreate

This callback allows the bot to log every time an invite is created for the current server

Usage:

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

Example Command:

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: