Struct DiscordSlashCommandOption
- Namespace
- BotManager.Discord.Models
- Assembly
- BotManager.Discord.dll
Defines a option for a DiscordSlashCommand.
public struct DiscordSlashCommandOption
- Inherited Members
Properties
Description
Gets and sets the option description.
public string? Description { readonly get; set; }
Property Value
IsRequired
Gets and sets if this option is required.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? IsRequired { readonly get; set; }
Property Value
- bool?
Name
Gets and sets the option name.
public string? Name { readonly get; set; }
Property Value
Type
Gets and sets the option type. See Discord.ApplicationCommandOptionType.
[JsonConverter(typeof(EnumConverter<ApplicationCommandOptionType>))]
public ApplicationCommandOptionType Type { readonly get; set; }
Property Value
- ApplicationCommandOptionType