diff --git a/src/discord.rs b/src/discord.rs index 6e870fd..4ee5f38 100644 --- a/src/discord.rs +++ b/src/discord.rs @@ -408,7 +408,7 @@ impl ApplicationCommandOption { description: description.to_string(), required: *required, options: None, - choices: Some(choices.clone().unwrap()), + choices: choices.clone(), }, ApplicationCommandOption::Integer { name, description, required, choices} => ApplicationCommandOptionRaw { type_: 4, @@ -416,7 +416,7 @@ impl ApplicationCommandOption { description: description.to_string(), required: *required, options: None, - choices: Some(choices.clone().unwrap()), + choices: choices.clone(), }, ApplicationCommandOption::Boolean { name, description, required} => ApplicationCommandOptionRaw { type_: 5,