• Checks if the triggerer has the required roles

    Returns

    GuildMember object of the triggerer

    Deprecated

    Remark

    Parameters

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

      the command used

    • requiredRoles: string[]

      the roles to check, roles have OR relationship

    Returns Promise<GuildMember>

Generated using TypeDoc