Function isTriggeredByUserWithRolesSync
- isTriggeredByUserWithRolesSync(interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType> | ModalSubmitInteraction<CacheType>, commandName: string, requiredRoles: string[]): GuildMember
-
Parameters
-
interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType> | ModalSubmitInteraction<CacheType>
-
commandName: string
-
requiredRoles: string[]
Returns GuildMember
Checks if the triggerer has the required roles. Synchronus version of isTriggeredByUserWithRoles
Returns
GuildMember object of the triggerer