pub struct DeleteBan<'a> { /* private fields */ }
Expand description
Remove a ban from a user in a guild.
§Examples
Unban user 200
from guild 100
:
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(100);
let user_id = Id::new(200);
client.delete_ban(guild_id, user_id).await?;
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for DeleteBan<'a>
impl<'a> AuditLogReason<'a> for DeleteBan<'a>
source§impl IntoFuture for DeleteBan<'_>
impl IntoFuture for DeleteBan<'_>
source§type Output = Result<Response<EmptyBody>, Error>
type Output = Result<Response<EmptyBody>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<EmptyBody>
type IntoFuture = ResponseFuture<EmptyBody>
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
Auto Trait Implementations§
impl<'a> Freeze for DeleteBan<'a>
impl<'a> !RefUnwindSafe for DeleteBan<'a>
impl<'a> Send for DeleteBan<'a>
impl<'a> Sync for DeleteBan<'a>
impl<'a> Unpin for DeleteBan<'a>
impl<'a> !UnwindSafe for DeleteBan<'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