pub struct SetGuildCommands<'a> { /* private fields */ }
Expand description
Set a guild’s commands.
This method is idempotent: it can be used on every start, without being ratelimited if there aren’t changes to the commands.
The Command
struct has an associated builder in the
twilight-util
crate.
Trait Implementations§
source§impl IntoFuture for SetGuildCommands<'_>
impl IntoFuture for SetGuildCommands<'_>
source§type Output = Result<Response<ListBody<Command>>, Error>
type Output = Result<Response<ListBody<Command>>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<ListBody<Command>>
type IntoFuture = ResponseFuture<ListBody<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 SetGuildCommands<'_>
impl TryIntoRequest for SetGuildCommands<'_>
Auto Trait Implementations§
impl<'a> Freeze for SetGuildCommands<'a>
impl<'a> !RefUnwindSafe for SetGuildCommands<'a>
impl<'a> Send for SetGuildCommands<'a>
impl<'a> Sync for SetGuildCommands<'a>
impl<'a> Unpin for SetGuildCommands<'a>
impl<'a> !UnwindSafe for SetGuildCommands<'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