From 0e24fffde0e1a81ebfcfdb02e48703e0a3a9b30a Mon Sep 17 00:00:00 2001 From: bitspill Date: Wed, 1 Feb 2023 05:25:39 -0600 Subject: [PATCH] fix IntegerOptionType Unmarshall --- discord/interaction.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/discord/interaction.go b/discord/interaction.go index 3f06fb9..38765c2 100644 --- a/discord/interaction.go +++ b/discord/interaction.go @@ -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,