Type alias SlashCommandMiddlewarePredicate

SlashCommandMiddlewarePredicate: ((client, interaction) => Awaitable<boolean>)

The predicate for the SlashCommandMiddleware

Type declaration

    • (client, interaction): Awaitable<boolean>
    • Parameters

      • client: Client
      • interaction: ChatInputCommandInteraction

      Returns Awaitable<boolean>

Generated using TypeDoc