Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace <internal>

Index

Type aliases

AllOptionTypes: OptionTypes | OptionStringTypes
ChannelOptionTypes: "channel" | Channel
CommandArray: [string, string?, string?]

A command array stores the 3 parts of a command: the subcommand group, subcommand, and command. A command array acts more like a FIFO stack, where you can also have a subcommand and command, or just a command.

DiscordExpressInteractionCommandHandler: (request: InteractionRequest, response: InteractionResponse, nextFunc: NextFunc) => void

Type declaration

DiscordExpressMessageHandler: (request: MessageRequest, response: MessageResponse, nextFunc: NextFunc) => void

Type declaration

NextFunc: (error?: unknown) => void

Type declaration

    • (error?: unknown): void
    • Parameters

      • Optional error: unknown

      Returns void

NumericOptionTypes: "int" | "integer" | "number" | "num" | Integer | Number
OptionStringTypes: "string" | "str" | "integer" | "int" | "boolean" | "bool" | "user" | "channel" | "role" | "mentionable" | "mention" | "number" | "num"
RateLimitMethods: "guild" | "channel" | "user" | "guildUser" | "channelUser"
Ref<T>: { current?: T }

Type parameters

  • T

Type declaration

  • Optional current?: T
StackCommand: { command: CommandArray[]; handler: DiscordExpressHandler; type: "command" } | { command: CommandArray[]; handler: DiscordExpressMessageHandler; type: "messageCommand" } | { command: CommandArray[]; handler: DiscordExpressInteractionCommandHandler; type: "interactionCommand" }
StackItem: { command?: CommandArray[]; handler: DiscordExpressHandler; type: "use" } | { command?: CommandArray[]; handler: DiscordExpressErrorHandler; type: "error" } | StackCommand
StringOptionTypes: "string" | "str" | String

Generated using TypeDoc