Class: ApplicationCommand
Hierarchy
↳
ApplicationCommand
Constructors
constructor
• new ApplicationCommand(client, data)
Parameters
| Name | Type |
|---|---|
client | Client |
data | Object |
Overrides
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:156
Properties
client
• Readonly client: Client
Inherited from
Defined in
packages/libcord/src/structures/Base.ts:8
data
• data: Object
Index signature
▪ [index: string]: any
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:154
defaultPermission
• defaultPermission: boolean
if the command is enable by default on add guild
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:150
description
• description: string
the description of the command
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:141
guild
• guild: null | Guild
the guild of the command (is null for global commands)
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:131
id
• id: string
the id of the command
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:126
name
• name: string
the name of the command
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:136
options
• options: null | ApplicationCommandOption[]
the options of the command
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:146
Methods
edit
▸ edit(data, cache?): Promise<ApplicationCommand>
Parameters
| Name | Type | Default value |
|---|---|---|
data | EditApplicationCommandOptions | undefined |
cache | boolean | true |
Returns
Promise<ApplicationCommand>
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:174
toJSON
▸ toJSON(space?): string
Parameters
| Name | Type | Default value |
|---|---|---|
space | number | 1 |
Returns
string
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:185
toString
▸ toString(): string
Returns
string
Defined in
packages/libcord/src/structures/ApplicationCommand.ts:181
updateData
▸ updateData(data): ApplicationCommand
Parameters
| Name | Type |
|---|---|
data | APIApplicationCommand |