Skip to main content

Class: ApplicationCommandRoute

Hierarchy

  • BaseRoute

    ApplicationCommandRoute

Constructors

constructor

new ApplicationCommandRoute(app, command)

Parameters

NameType
appApp
commandApplicationCommand

Overrides

BaseRoute.constructor

Defined in

packages/disploy/src/router/ApplicationCommandRoute.ts:11

Properties

app

Protected app: App

Inherited from

BaseRoute.app

Defined in

packages/disploy/src/router/BaseRoute.ts:10


command

Private command: ApplicationCommand

Defined in

packages/disploy/src/router/ApplicationCommandRoute.ts:11


name

name: string

Defined in

packages/disploy/src/router/ApplicationCommandRoute.ts:9


type

type: InteractionType

The type of interaction this route is for.

Inherited from

BaseRoute.type

Defined in

packages/disploy/src/router/BaseRoute.ts:8

Methods

chatInputRun

chatInputRun(interaction): Promise<void>

Parameters

NameType
interactionCommandInteraction

Returns

Promise<void>

Defined in

packages/disploy/src/router/ApplicationCommandRoute.ts:17