Struct twilight_http::request::GetGatewayAuthed [−][src]
pub struct GetGatewayAuthed<'a> { /* fields omitted */ }Expand description
Get information about the gateway, authenticated as a bot user.
Returns additional information: the recommended number of shards to use, and information on the current session start limit.
Implementations
pub fn exec(self) -> ResponseFuture<BotConnectionInfo>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<BotConnectionInfo>ⓘ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.