yor.ts / Exports / AutocompleteCommandContext

Class: AutocompleteCommandContext

Hierarchy

  • BaseContext AutocompleteCommandContext

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AutocompleteCommandContext(client, data): AutocompleteCommandContext Initializes a new instance of the APIApplicationCommandAutocompleteInteraction class.

Parameters

NameTypeDescription
clientYorClientThe client object.
dataAPIApplicationCommandAutocompleteInteractionThe data used to initialize the instance.

Returns

AutocompleteCommandContext

Overrides

BaseContext.constructor

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:30

Properties

API

Private API: InteractionsAPI

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:15

applicationId

Readonly applicationId: string

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:20

channel

channel: Channel

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:22

client

client: YorClient

Inherited from

BaseContext.client

Defined in

src/structures/Base.ts:4

interactionId

Readonly interactionId: string

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:19

raw

Readonly raw: APIApplicationCommandAutocompleteInteraction

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:17

token

Readonly token: string

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:21

Methods

decorate

decorate(name, data): unknown Decorates the object with a new property.

Parameters

NameTypeDescription
namestringThe name of the property.
dataunknownThe data to assign to the property.

Returns

unknown The decorated object.

Inherited from

BaseContext.decorate

Defined in

src/structures/Contexts/BaseContext.ts:22

respond

respond(data): Promise<void>

Parameters

NameType
dataAPICommandAutocompleteInteractionResponseCallbackData

Returns

Promise<void>

Defined in

src/structures/Contexts/AutocompleteCommandContext.ts:46