Abstract
No summary provided.
Implements
JSONEncodable<Command>| Name | Constraints | Optional | Default | Description |
|---|---|---|---|---|
| Command | RESTPostAPIApplicationCommandsJSONBody | No | None |
Clears the default permissions a member should have in order to run the command.
Sets the contexts of this command.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...contexts | RestOrArray<InteractionContextType> | No | The contexts |
Sets the default permissions a member should have in order to run the command.
Remarks
You can set this to'0' to disable the command by default.| Name | Type | Optional | Description |
|---|---|---|---|
| permissions | Permissions | bigint | number | No | The permissions bit field to set |
Sets the integration types of this command.
| Name | Type | Optional | Description |
|---|---|---|---|
| ...integrationTypes | RestOrArray<ApplicationIntegrationType> | No | The integration types |
Sets whether this command is NSFW.
| Name | Type | Optional | Description |
|---|---|---|---|
| nsfw | boolean | Yes | Whether this command is NSFW |
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.
| Name | Type | Optional | Description |
|---|---|---|---|
| validationOverride | boolean | Yes | Force validation to run/not run regardless of your global preference |