Struct twilight_http::request::application::command::UpdateCommandPermissions
source · pub struct UpdateCommandPermissions<'a> { /* private fields */ }
Expand description
Update command permissions for a single command in a guild.
Note that this overwrites the command permissions, so the full set of permissions has to be sent every time.
This request requires that the client was configured with an OAuth Bearer token.
Implementations§
source§impl<'a> UpdateCommandPermissions<'a>
impl<'a> UpdateCommandPermissions<'a>
sourcepub fn exec(self) -> ResponseFuture<ListBody<CommandPermission>> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<ListBody<CommandPermission>> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations§
source§impl IntoFuture for UpdateCommandPermissions<'_>
impl IntoFuture for UpdateCommandPermissions<'_>
§type Output = Result<Response<ListBody<CommandPermission>>, Error>
type Output = Result<Response<ListBody<CommandPermission>>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<ListBody<CommandPermission>>
type IntoFuture = ResponseFuture<ListBody<CommandPermission>>
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 UpdateCommandPermissions<'_>
impl TryIntoRequest for UpdateCommandPermissions<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UpdateCommandPermissions<'a>
impl<'a> Send for UpdateCommandPermissions<'a>
impl<'a> Sync for UpdateCommandPermissions<'a>
impl<'a> Unpin for UpdateCommandPermissions<'a>
impl<'a> !UnwindSafe for UpdateCommandPermissions<'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