pub struct UpdateGlobalCommand<'a> { /* private fields */ }Expand description
Edit a global command, by ID.
You must specify a name and description. See Discord Docs/Edit Global Application Command.
Implementations§
Source§impl<'a> UpdateGlobalCommand<'a>
impl<'a> UpdateGlobalCommand<'a>
Sourcepub const fn description(self, description: &'a str) -> Self
pub const fn description(self, description: &'a str) -> Self
Edit the description of the command.
Sourcepub const fn command_options(self, options: &'a [CommandOption]) -> Self
pub const fn command_options(self, options: &'a [CommandOption]) -> Self
Edit the command options of the command.
Trait Implementations§
Source§impl IntoFuture for UpdateGlobalCommand<'_>
impl IntoFuture for UpdateGlobalCommand<'_>
Source§type Output = Result<Response<Command>, Error>
type Output = Result<Response<Command>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<Command>
type IntoFuture = ResponseFuture<Command>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl TryIntoRequest for UpdateGlobalCommand<'_>
impl TryIntoRequest for UpdateGlobalCommand<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UpdateGlobalCommand<'a>
impl<'a> !UnwindSafe for UpdateGlobalCommand<'a>
impl<'a> Forget for UpdateGlobalCommand<'a>
impl<'a> Freeze for UpdateGlobalCommand<'a>where
&'a str: Freeze,
&'a [CommandOption]: Freeze,
PhantomData<fn(CommandMarker) -> CommandMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<fn(ApplicationMarker) -> ApplicationMarker>: Freeze,
&'a Client: Freeze,
impl<'a> Move for UpdateGlobalCommand<'a>
impl<'a> Send for UpdateGlobalCommand<'a>
impl<'a> Sync for UpdateGlobalCommand<'a>where
RawVecInner: Sync,
RawTable<(String, String)>: Sync,
NonZero<u64>: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
impl<'a> Unpin for UpdateGlobalCommand<'a>
impl<'a> UnsafeUnpin for UpdateGlobalCommand<'a>where
&'a str: UnsafeUnpin,
&'a [CommandOption]: UnsafeUnpin,
PhantomData<fn(CommandMarker) -> CommandMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<fn(ApplicationMarker) -> ApplicationMarker>: UnsafeUnpin,
&'a Client: UnsafeUnpin,
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