Struct twilight_http::request::application::interaction::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::new(1).expect("non zero"));
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.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetOriginalResponse<'a>
impl<'a> Send for GetOriginalResponse<'a>
impl<'a> Sync for GetOriginalResponse<'a>
impl<'a> Unpin for GetOriginalResponse<'a>
impl<'a> !UnwindSafe for GetOriginalResponse<'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