#[non_exhaustive]pub struct Command<'a> {
pub arguments: Arguments<'a>,
pub name: &'a str,
pub prefix: &'a str,
}
👎Deprecated since 0.8.1: use interactions via
twilight-http
or twilight-gateway
Expand description
Indicator that a command was used.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arguments: Arguments<'a>
👎Deprecated since 0.8.1: use interactions via
twilight-http
or twilight-gateway
A lazy iterator of command arguments. Refer to its documentation on how to use it.
name: &'a str
👎Deprecated since 0.8.1: use interactions via
twilight-http
or twilight-gateway
The name of the command that was called.
prefix: &'a str
👎Deprecated since 0.8.1: use interactions via
twilight-http
or twilight-gateway
The prefix used to call the command.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnwindSafe for Command<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more