Struct twilight_http::request::application::command::UpdateGuildCommand
source · [−]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
sourceimpl<'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.
sourcepub fn exec(self) -> ResponseFuture<Command>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Command>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for UpdateGuildCommand<'_>
impl TryIntoRequest for UpdateGuildCommand<'_>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more