Bot events
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. | |
buttonClick | Gets emitted when a member clicks on a button. | |
formSubmit | Gets emitted when a member submits a form | |
roleDelete | Gets emitted when a role gets deleted from a guild. | |
roleUpdate | Gets emitted when a role gets updated in a guild (name, color or permissions changes for example) | |
roleAdd | Gets emitted when a role gets created in a guild. | |
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. | |
emojiUpdate | Gets emitted when an emoji gets updated in a guild. | |
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. | |
guildDescriptionChange | Gets emitted when the description of a guild gets changed. | |
guildOwnerChange | Gets emitted when the guild gets a new owner. | |
guildBoost | Gets emitted when the amount of boosts of the guild changes. | |
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. | |
messageDelete | Gets emitted when a message gets deleted. | |
message | Gets emitted when a new message gets send. | Message (new message) |
membersPrune | Gets emitted when a moderator prunes the members. | |
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. | |
memberBan | Gets emitted when a member gets banned. | |
bannerChange | Gets emitted when the banner of a user gets changed. | |
avatarChange | Gets emitted when the avatar of a user gets changed. | |
discriminatorChange (deprecated) | Gets emitted when the discriminator of a user gets changed. | |
usernameChange | Gets emitted when a user changes their username. | |
roleChange | Gets emitted when a role gets added or removed from a member. | |
nicknameChange | Gets emitted when the nickname of a member gets changed. | |
memberMuteRemove | Gets emitted when a mute of a member gets removed. | |
memberMuteAdd | Gets emitted when a member gets muted. | |
memberKick | Gets emitted when a member gets kicked from a guild. | |
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) |
Last updated