Slash
Slash ⇐ Base
Section titled “Slash ⇐ Base”Represents a Slash command.
Kind: global class
Extends: Base
Constructor.:
Properties
| Name | Type | Description |
|---|---|---|
| type | string | The type of the Slash command. |
| name | string | The name of the Slash command. |
| description | string | The description of the Slash command. |
| options | Array.<SlashOption> | The options of the Slash command. |
| defaultMemberPermissions | boolean | The default member permissions of the Slash command. |
new Slash([data], client)
Section titled “new Slash([data], client)”Constructs a new instance of the ApplicationCommand class
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object containing information about the Slash command. |
| client | Client | The client object. |