Interface SlashCommandConfig

Configuration for a slash command

Hierarchy

Properties

cooldown?: number

Minimum time (in seconds) between usages

data: Partial<SlashCommandBuilder>

Data to register into the Discord API

id: string

ID of the part

initFunction?: ((artibot: Artibot) => Promise<void>)

Type declaration

mainFunction: ((interaction: ChatInputCommandInteraction<"cached">, artibot: Artibot) => Promise<void>)

Type declaration

    • (interaction: ChatInputCommandInteraction<"cached">, artibot: Artibot): Promise<void>
    • Function to execute when the command is ran

      Parameters

      • interaction: ChatInputCommandInteraction<"cached">
      • artibot: Artibot

      Returns Promise<void>

Generated using TypeDoc v0.23.28