pub struct CommandBuilder(/* private fields */);Expand description
A slash, user or message command.
Implementations§
Source§impl CommandBuilder
impl CommandBuilder
Sourcepub fn option(self, option: OptionBuilder) -> Self
pub fn option(self, option: OptionBuilder) -> Self
Adds an option (slash commands).
Sourcepub const fn permissions(self, bits: Permissions) -> Self
pub const fn permissions(self, bits: Permissions) -> Self
Bits the invoker needs; empty means the owner only.
Trait Implementations§
Source§impl Clone for CommandBuilder
impl Clone for CommandBuilder
Source§fn clone(&self) -> CommandBuilder
fn clone(&self) -> CommandBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnsafeUnpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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