Struct twilight_http::request::channel::invite::GetInvite [−][src]
pub struct GetInvite<'a> { /* fields omitted */ }Expand description
Get information about an invite by its code.
If with_counts is called, the returned invite will contain approximate
member counts. If with_expiration is called, it will contain the
expiration date.
Examples
use twilight_http::Client;
let client = Client::new("my token".to_owned());
let invite = client
.invite("code")
.with_counts()
.exec()
.await?;Implementations
Whether the invite returned should contain approximate member counts.
Whether the invite returned should contain its expiration date.
pub fn exec(self) -> ResponseFuture<Invite>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Invite>ⓘ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 GetInvite<'a>
impl<'a> !UnwindSafe for GetInvite<'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