Struct twilight_http::request::application::GetOriginalResponse [−][src]
pub struct GetOriginalResponse<'a> { /* fields omitted */ }Expand description
Get the original message, by its token.
Examples
use std::env; use twilight_http::Client; use twilight_http::request::AuditLogReason; use twilight_model::id::ApplicationId; let client = Client::new(env::var("DISCORD_TOKEN")?); client.set_application_id(ApplicationId(1)); let message = client .get_interaction_original("token here")? .exec() .await?;
Implementations
pub fn exec(self) -> ResponseFuture<Message>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Message>ⓘ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.