Skip to content

Commit

Permalink
Revert "Introduce a separate data type for autocomplete interactions (s…
Browse files Browse the repository at this point in the history
…erenity-rs#1941)"

This reverts commit f1048ca.
  • Loading branch information
GnomedDev committed Jun 6, 2022
1 parent 4987c3c commit 3a2a641
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 409 deletions.
4 changes: 4 additions & 0 deletions src/model/application/interaction/application_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ pub struct CommandDataOption {
/// The resolved object of the given `value`, if there is one.
#[serde(default)]
pub resolved: Option<CommandDataOptionValue>,
/// For `Autocomplete` Interactions this will be `true` if
/// this option is currently focused by the user.
#[serde(default)]
pub focused: bool,
}

/// The resolved value of an [`CommandDataOption`].
Expand Down
Loading

0 comments on commit 3a2a641

Please sign in to comment.