Skip to content

Commit

Permalink
Fix a typo in the create interaction builder (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
drp19 authored Jan 20, 2021
1 parent 9bbb25a commit 5254e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/create_interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl CreateInteractionOption {
}

fn add_choice(&mut self, value: Value) -> &mut Self {
let choices = self.0.entry("options").or_insert_with(|| Value::Array(Vec::new()));
let choices = self.0.entry("choices").or_insert_with(|| Value::Array(Vec::new()));
if let Some(choices_arr) = choices.as_array_mut() {
choices_arr.push(value);
};
Expand Down

0 comments on commit 5254e2b

Please sign in to comment.