• Checks if the triggerer has the required roles. Synchronus version of isTriggeredByUserWithRoles

    Returns

    GuildMember object of the triggerer

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType> | ButtonInteraction<CacheType> | ModalSubmitInteraction<CacheType>
    • commandName: string

      the command used

    • requiredRoles: string[]

      the roles to check, roles have OR relationship

    Returns GuildMember

Generated using TypeDoc