pub struct UpdateGuildCommand<'a> { /* private fields */ }
Expand description
Edit a command in a guild, by ID.
You must specify a name and description. See Discord Docs/Edit Guild Application Command.
Implementations§
source§impl<'a> UpdateGuildCommand<'a>
impl<'a> UpdateGuildCommand<'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 UpdateGuildCommand<'_>
impl IntoFuture for UpdateGuildCommand<'_>
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 UpdateGuildCommand<'_>
impl TryIntoRequest for UpdateGuildCommand<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateGuildCommand<'a>
impl<'a> !RefUnwindSafe for UpdateGuildCommand<'a>
impl<'a> Send for UpdateGuildCommand<'a>
impl<'a> Sync for UpdateGuildCommand<'a>
impl<'a> Unpin for UpdateGuildCommand<'a>
impl<'a> !UnwindSafe for UpdateGuildCommand<'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