export declare class SlashCommandBuilder
No summary provided.
Set of permissions represented as a bit set for the command
Whether the command is enabled by default when the app is added to a guild
The localized descriptions for this command
The description of this slash command
Indicates whether the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
The localized names for this command
The name of this slash command
The options of this slash command
Adds a new subcommand to this command
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder) | No | None |
Adds a new subcommand group to this command
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder) | No | None |
Sets the default permissions a member should have in order to run the command.
**Note:** You can set this to to disable the command by default.
Name | Type | Optional | Description |
---|---|---|---|
permissions | Permissions | bigint | number | null | undefined | No | None |
Sets whether the command is enabled by default when the application is added to a guild.
**Note**: If set to , you will have to later the permissions for this command.
Name | Type | Optional | Description |
---|---|---|---|
value | boolean | No | None |
Sets if the command is available in DMs with the application, only for globally-scoped commands. By default, commands are visible.
Name | Type | Optional | Description |
---|---|---|---|
enabled | boolean | null | undefined | No | None |
Returns the final data that should be sent to Discord.
**Note:** Calling this function will validate required properties based on their conditions.