Struct prelude::CommandData
zaun_bot::prelude::CommandData · Struct
pub struct CommandData { … }Fields
Section titled “Fields”command_id: Id
Section titled “command_id: Id”name: String
Section titled “name: String”kind: CommandKind
Section titled “kind: CommandKind”group: Option<String>
Section titled “group: Option<String>”sub_command: Option<String>
Section titled “sub_command: Option<String>”options: Vec<ReceivedOption>
Section titled “options: Vec<ReceivedOption>”resolved: Resolved
Section titled “resolved: Resolved”target_id: Option<Id>
Section titled “target_id: Option<Id>”The member (user commands) or message (message commands) acted on.
Methods
Section titled “Methods”focused
Section titled “focused”pub fn focused(&self) -> Option<(&str, &OptionValue)>The option the invoker is typing in (autocomplete).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Options