struct Cryscord::CommandOption
- Cryscord::CommandOption
- Struct
- Value
- Object
Defined in:
command_option.crConstructors
Instance Method Summary
- #autocomplete : Bool
- #channel_types : Array(Cryscord::Channel::Type)
- #choices : Array(Cryscord::CommandOptionChoice)
- #clone
- #copy_with(type _type = @type, name _name = @name, description _description = @description, name_localizations _name_localizations = @name_localizations, description_localizations _description_localizations = @description_localizations, required _required = @required, choices _choices = @choices, options _options = @options, channel_types _channel_types = @channel_types, min_value _min_value = @min_value, max_value _max_value = @max_value, min_length _min_length = @min_length, max_length _max_length = @max_length, autocomplete _autocomplete = @autocomplete)
- #description : String
- #description_localizations : Hash(String, String)
- #max_length : UInt32 | Nil
- #max_value : UInt64 | Nil
- #min_length : UInt32 | Nil
- #min_value : UInt64 | Nil
- #name : String
- #name_localizations : Hash(String, String)
- #options : Array(Cryscord::CommandOption)
- #required : Bool
- #type : CommandOption::Type
Constructor Detail
def self.new(type : CommandOption::Type, name : String, description : String, name_localizations : Hash(String, String) = LocaleDict.new, description_localizations : Hash(String, String) = LocaleDict.new, required : Bool = false, choices : Array(Cryscord::CommandOptionChoice) = ChoiceArray.new, options : Array(Cryscord::CommandOption) = ParentCommandOptionArray.new, channel_types : Array(Cryscord::Channel::Type) = ChannelTypeArray.new, min_value : UInt64 | Nil = nil, max_value : UInt64 | Nil = nil, min_length : UInt32 | Nil = nil, max_length : UInt32 | Nil = nil, autocomplete : Bool = false)
#
Instance Method Detail
def copy_with(type _type = @type, name _name = @name, description _description = @description, name_localizations _name_localizations = @name_localizations, description_localizations _description_localizations = @description_localizations, required _required = @required, choices _choices = @choices, options _options = @options, channel_types _channel_types = @channel_types, min_value _min_value = @min_value, max_value _max_value = @max_value, min_length _min_length = @min_length, max_length _max_length = @max_length, autocomplete _autocomplete = @autocomplete)
#