Struct twilight_http::request::channel::GetChannel [−][src]
pub struct GetChannel<'a> { /* fields omitted */ }Expand description
Get a channel by its ID.
Examples
Get channel 100:
use twilight_http::Client; use twilight_model::id::ChannelId; let client = Client::new("my token".to_owned()); let channel_id = ChannelId(100); let channel = client.channel(channel_id).exec().await?;
Implementations
pub fn exec(self) -> ResponseFuture<Channel>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Channel>ⓘ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.