From 2b80488fa35df114973509cb0174123ce90418e9 Mon Sep 17 00:00:00 2001 From: Rarkness Date: Wed, 6 Mar 2024 13:12:33 +0900 Subject: [PATCH] fix failing tests --- discord/interaction.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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