Struct twilight_http::request::guild::ban::DeleteBan [−][src]
pub struct DeleteBan<'a> { /* fields omitted */ }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::{GuildId, UserId};
let client = Client::new("my token".to_owned());
let guild_id = GuildId::new(100).expect("non zero");
let user_id = UserId::new(200).expect("non zero");
client.delete_ban(guild_id, user_id).exec().await?;Implementations
pub 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>;
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
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DeleteBan<'a>
impl<'a> !UnwindSafe for DeleteBan<'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