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
AutocompleteCommandContext
Overrides
BaseContext.constructorDefined in
src/structures/Contexts/AutocompleteCommandContext.ts:30Properties
API
•Private API: InteractionsAPI
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:15applicationId
•Readonly applicationId: string
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:20channel
• channel:Channel
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:22client
• client:YorClient
Inherited from
BaseContext.clientDefined in
src/structures/Base.ts:4interactionId
•Readonly interactionId: string
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:19raw
•Readonly raw: APIApplicationCommandAutocompleteInteraction
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:17token
•Readonly token: string
Defined in
src/structures/Contexts/AutocompleteCommandContext.ts:21Methods
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.decorateDefined in
src/structures/Contexts/BaseContext.ts:22respond
▸ respond(data): Promise<void>
Parameters
| Name | Type |
|---|---|
data | APICommandAutocompleteInteractionResponseCallbackData |
Returns
Promise<void>
