diff --git a/discord/interaction.go b/discord/interaction.go index 7336b33..0761446 100644 --- a/discord/interaction.go +++ b/discord/interaction.go @@ -553,9 +553,8 @@ func optionKindSwitch(kind reflect.Kind, typ CommandOptionType) (expectType Comm return StringOptionType case reflect.Bool: return BooleanOptionType - default: } - return + return typ } // Unmarshal unmarshals the options into the struct pointer v. Each struct field