Function isTriggeredByUserWithRoles
- isTriggeredByUserWithRoles(interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType> | ModalSubmitInteraction<CacheType>, commandName: string, requiredRoles: string[]): Promise<GuildMember>
-
Parameters
-
interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType> | ModalSubmitInteraction<CacheType>
-
commandName: string
-
requiredRoles: string[]
Returns Promise<GuildMember>
Checks if the triggerer has the required roles
Returns
GuildMember object of the triggerer
Deprecated
Remark
/clear_all
because it's slow