Carbon
CoreClasses

CommandHandler

Extends

  • Base

Constructors

new CommandHandler()

new CommandHandler(client): CommandHandler

Parameters

ParameterType
clientClient

Returns

CommandHandler

Inherited from

Base.constructor

Properties

PropertyTypeInherited from
clientClientBase.client

Methods

handleAutocompleteInteraction()

handleAutocompleteInteraction(rawInteraction): Promise<false | void>

Parameters

ParameterType
rawInteractionAPIApplicationCommandAutocompleteInteraction

Returns

Promise<false | void>


handleCommandInteraction()

handleCommandInteraction(rawInteraction): Promise<false | void>

Internal

Handle a command interaction

Parameters

ParameterType
rawInteractionAPIApplicationCommandInteraction

Returns

Promise<false | void>

On this page

Edit on GitHub