Class: ChatInputInteractionOptions
Hierarchy
Base↳
ChatInputInteractionOptions
Constructors
constructor
• new ChatInputInteractionOptions(app, interaction)
Parameters
| Name | Type |
|---|---|
app | App |
interaction | ChatInputInteraction |
Overrides
Base.constructor
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:11
Properties
app
• app: App
Inherited from
Base.app
Defined in
packages/disploy/src/structs/Base.ts:4
interaction
• Private interaction: ChatInputInteraction
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:11
Methods
getNumber
▸ getNumber(key): number
Parameters
| Name | Type |
|---|---|
key | string |
Returns
number
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:31
▸ getNumber(key, nullable?): undefined | number
Parameters
| Name | Type |
|---|---|
key | string |
nullable? | boolean |
Returns
undefined | number
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:32
getString
▸ getString(key): string
Parameters
| Name | Type |
|---|---|
key | string |
Returns
string
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:25
▸ getString(key, nullable?): undefined | string
Parameters
| Name | Type |
|---|---|
key | string |
nullable? | boolean |
Returns
undefined | string
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:26
getValue
▸ Private getValue<T>(key, nullable): undefined | T
Type parameters
| Name | Type |
|---|---|
T | extends APIApplicationCommandInteractionDataOption |
Parameters
| Name | Type |
|---|---|
key | string |
nullable | boolean |
Returns
undefined | T
Defined in
packages/disploy/src/structs/ChatInputInteractionOptions.ts:15