Yor.ts | classes/AutocompleteCommandContext
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
Name | Type | Description |
---|---|---|
client | YorClient | The client object. |
data | APIApplicationCommandAutocompleteInteraction | The data used to initialize the instance. |
Returns
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
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
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
data | unknown | The 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
Name | Type |
---|---|
data | APICommandAutocompleteInteractionResponseCallbackData |
Returns
Promise
<void
>
Defined in
Was this page helpful?