Interface ContextMenuCommandOptions

The options for the context menu command

interface ContextMenuCommandOptions {
    autoDeferral?: boolean | CommandAutoDeferralOptions;
    cooldownSeconds?: number;
    data: ContextMenuCommandData | Omit<ContextMenuCommandBuilder, "type" | "setType">;
    middlewares?: (UserContextMenuCommandMiddleware | MessageContextMenuCommandMiddleware)[];
}

Properties

autoDeferral?: boolean | CommandAutoDeferralOptions

The command auto deferral options

Default

false

cooldownSeconds?: number

The cooldown in seconds

Default

null

data: ContextMenuCommandData | Omit<ContextMenuCommandBuilder, "type" | "setType">

The data

The middlewares

Default

[]

Generated using TypeDoc