Events
Last updated
Last updated
This page provides the events which are available for the EventEmitter which is returned by using the <Addon>.createEventListener() function.
Event | Description | Arguments |
---|---|---|
menuSelect
Gets emitted when a member selects a value from a select menu.
MenuInteraction
buttonClick
Gets emitted when a member clicks on a button.
ButtonInteraction
formSubmit
Gets emitted when a member submits a form
FormInteraction
roleDelete
Gets emitted when a role gets deleted from a guild.
Role (deleted role), BaseEntry
roleUpdate
Gets emitted when a role gets updated in a guild (name, color or permissions changes for example)
Role (old role), Role (new role), BaseEntry
roleAdd
Gets emitted when a role gets created in a guild.
Role (new role), BaseEntry
channelDelete
Gets emitted when a channel gets deleted from a guild.
Channel (TextChannel, ForumChannel, StageChannel, VoiceChannel, ThreadChannel, CategoryChannel or DirectoryChannel) (deleted channel), BaseEntry
channelUpdate
Gets emitted when a channel gets updated in a guild (name, topic or permissions changes for example)
Channel (TextChannel, ForumChannel, StageChannel, VoiceChannel, ThreadChannel, CategoryChannel or DirectoryChannel) (old channel), Channel (TextChannel, ForumChannel, StageChannel, VoiceChannel, ThreadChannel, CategoryChannel or DirectoryChannel) (new channel), BaseEntry
channelAdd
Gets emitted when a channel gets created in a guild.
Channel (TextChannel, ForumChannel, StageChannel, VoiceChannel, ThreadChannel, CategoryChannel or DirectoryChannel) (new channel), BaseEntry
emojiDelete
Gets emitted when an emoji gets deleted from a guild.
Emoji (deleted emoji), BaseEntry
emojiUpdate
Gets emitted when an emoji gets updated in a guild.
Emoji (old emoji), Emoji (new emoji), BaseEntry
guildDelete
Gets emitted when the bot was removed from a guild.
Guild (old guild)
guildNameChange
Gets emitted when the name of a guild gets changed.
Guild (old guild), Guild (new guild), BaseEntry
guildDescriptionChange
Gets emitted when the description of a guild gets changed.
Guild (old guild), Guild (new guild), BaseEntry
guildOwnerChange
Gets emitted when the guild gets a new owner.
Guild (old guild), Guild (new guild), BaseEntry
guildBoost
Gets emitted when the amount of boosts of the guild changes.
Guild (old guild), Guild (new guild), BaseEntry
guildAdd
Gets emitted when the bot gets added to a new guild.
Guild (new guild)
reactionDelete
Gets emitted when a reaction gets removed from a message.
Reaction (old reaction)
reactionAdd
Gets emitted when a new reaction gets added to a message.
Reaction (new reaction)
messageUpdate
Gets emitted when a message gets changed.
Message (old message), Message (new message)
messageDelete
Gets emitted when a message gets deleted.
Message (old message), User (executor)
message
Gets emitted when a new message gets send.
Message (new message)
membersPrune
Gets emitted when a moderator prunes the members.
Save<string, Member> (old members), Guild
ticketClose
Gets emitted when a ticket gets closed.
TextChannel (old ticket), Buffer (HTML transcript), rawTicketInfo
levelUp
Gets emitted when a member goes a level up in the level system.
Member
memberBan
Gets emitted when a member gets banned.
BanEntry
bannerChange
Gets emitted when the banner of a user gets changed.
User (old user), User (new user)
avatarChange
Gets emitted when the avatar of a user gets changed.
User (old user), User (new user)
discriminatorChange (deprecated)
Gets emitted when the discriminator of a user gets changed.
User (old user), User (new user)
usernameChange
Gets emitted when a user changes their username.
User (old user), User (new user)
roleChange
Gets emitted when a role gets added or removed from a member.
Member (old member), Member (new member), BaseEntry
nicknameChange
Gets emitted when the nickname of a member gets changed.
Member (old member), Member (new member), BaseEntry
memberMuteRemove
Gets emitted when a mute of a member gets removed.
Member (old member), Member (new member), MuteEntry
memberMuteAdd
Gets emitted when a member gets muted.
Member (old member), Member (new member), MuteEntry
memberKick
Gets emitted when a member gets kicked from a guild.
KickEntry
memberLeave
Gets emitted when a member leaves a guild.
Member (old member)
memberAdd
Gets emitted when a member joins a guild.
Member (new member)
voiceUpdate
Gets emitted when a voice state of a member gets updated (voice channel join or leave, gets muted or unmuted etc.)
VoiceState (old state), VoiceState (new state)
inviteCreate
Gets emitted when a new invite has been created by a member.
Invite (new invite)
inviteDelete
Gets emitted when an invite gets deleted from the server.
Invite (old invite)