export declare class ContextMenuCommandBuilder
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
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 context menu command
The type of this context menu command
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 |
Sets the name
Name | Type | Optional | Description |
---|---|---|---|
name | string | No | None |
Sets a name localization
Name | Type | Optional | Description |
---|---|---|---|
locale | LocaleString | No | None |
localizedName | string | null | No | None |
Sets the name localizations
Name | Type | Optional | Description |
---|---|---|---|
localizedNames | LocalizationMap | null | No | None |
Sets the type
Name | Type | Optional | Description |
---|---|---|---|
type | ContextMenuCommandType | No | None |
Returns the final data that should be sent to Discord.
**Note:** Calling this function will validate required properties based on their conditions.