Interaction docs for buttons

Changed `Sent when a user uses a Slash Command` to `Sent when a user uses a Slash Command (type 2) or clicks a button (type 3)` as interaction create event also triggers when a button is clicked now. The user can determine what was done by checking interaction.type
This commit is contained in:
Lumap
2021-06-02 19:51:10 +02:00
committed by GitHub
parent 41d32f90ad
commit 8c72da80f5

View File

@@ -80,11 +80,11 @@ export type EventHandlersDefinitions = {
guildMemberRemove: [guild: DiscordenoGuild, user: User, member?: DiscordenoMember];
/** Sent when a guild member is updated. This will also fire when the user object of a guild member changes. */
guildMemberUpdate: [guild: DiscordenoGuild, member: DiscordenoMember, oldMember?: DiscordenoMember];
/** Sent when a user uses a Slash Command. */
/** Sent when a user uses a Slash Command (type 2) or clicks a button (type 3). */
interactionCreate: [data: Omit<Interaction, "member">, member?: DiscordenoMember];
/** Sent when a user uses a Slash Command in a guild. */
/** Sent when a user uses a Slash Command in a guild (type 2) or clicks a button (type 3). */
interactionGuildCreate: [data: Omit<Interaction, "member">, member: DiscordenoMember];
/** Sent when a user uses a Slash Command in a dm. */
/** Sent when a user uses a Slash Command in a dm (type 2) or clicks a button (type 3). */
interactionDMCreate: [data: Omit<Interaction, "member">];
/** Sent when a message is created. */
messageCreate: [message: DiscordenoMessage];