Struct twilight_http::request::application::command::SetGuildCommands [−][src]
pub struct SetGuildCommands<'a> { /* fields omitted */ }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.
Implementations
pub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<ListBody<Command>>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
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.
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more