Struct twilight_http::request::channel::invite::DeleteInvite
source · [−]pub struct DeleteInvite<'a> { /* private fields */ }
Expand description
Delete an invite by its code.
Requires the MANAGE_CHANNELS
permission on the channel this invite
belongs to, or MANAGE_GUILD
to remove any invite across the guild.
Implementations
sourceimpl<'a> DeleteInvite<'a>
impl<'a> DeleteInvite<'a>
sourcepub fn exec(self) -> ResponseFuture<EmptyBody>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<EmptyBody>ⓘ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<'a> AuditLogReason<'a> for DeleteInvite<'a>
impl<'a> AuditLogReason<'a> for DeleteInvite<'a>
sourceimpl TryIntoRequest for DeleteInvite<'_>
impl TryIntoRequest for DeleteInvite<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DeleteInvite<'a>
impl<'a> Send for DeleteInvite<'a>
impl<'a> Sync for DeleteInvite<'a>
impl<'a> Unpin for DeleteInvite<'a>
impl<'a> !UnwindSafe for DeleteInvite<'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