mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 10:43:30 +00:00
fix IntegerOptionType Unmarshall
This commit is contained in:
parent
52f70d95eb
commit
0e24fffde0
|
@ -438,16 +438,16 @@ var optionSupportedSnowflakeTypes = map[reflect.Type]CommandOptionType{
|
|||
}
|
||||
|
||||
var optionKindMap = map[reflect.Kind]CommandOptionType{
|
||||
reflect.Int: NumberOptionType,
|
||||
reflect.Int8: NumberOptionType,
|
||||
reflect.Int16: NumberOptionType,
|
||||
reflect.Int32: NumberOptionType,
|
||||
reflect.Int64: NumberOptionType,
|
||||
reflect.Uint: NumberOptionType,
|
||||
reflect.Uint8: NumberOptionType,
|
||||
reflect.Uint16: NumberOptionType,
|
||||
reflect.Uint32: NumberOptionType,
|
||||
reflect.Uint64: NumberOptionType,
|
||||
reflect.Int: IntegerOptionType,
|
||||
reflect.Int8: IntegerOptionType,
|
||||
reflect.Int16: IntegerOptionType,
|
||||
reflect.Int32: IntegerOptionType,
|
||||
reflect.Int64: IntegerOptionType,
|
||||
reflect.Uint: IntegerOptionType,
|
||||
reflect.Uint8: IntegerOptionType,
|
||||
reflect.Uint16: IntegerOptionType,
|
||||
reflect.Uint32: IntegerOptionType,
|
||||
reflect.Uint64: IntegerOptionType,
|
||||
reflect.Float32: NumberOptionType,
|
||||
reflect.Float64: NumberOptionType,
|
||||
reflect.String: StringOptionType,
|
||||
|
|
Loading…
Reference in a new issue