pub struct GetResponse<'a> { /* private fields */ }
Expand description
Get the original message, by its token.
This endpoint is not bound to the application’s global rate limit.
§Examples
use std::env;
use twilight_http::{request::AuditLogReason, Client};
use twilight_model::id::Id;
let client = Client::new(env::var("DISCORD_TOKEN")?);
let application_id = Id::new(1);
client
.interaction(application_id)
.response("token here")
.await?;
Trait Implementations§
source§impl IntoFuture for GetResponse<'_>
impl IntoFuture for GetResponse<'_>
source§type Output = Result<Response<Message>, Error>
type Output = Result<Response<Message>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Message>
type IntoFuture = ResponseFuture<Message>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
source§impl TryIntoRequest for GetResponse<'_>
impl TryIntoRequest for GetResponse<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetResponse<'a>
impl<'a> !RefUnwindSafe for GetResponse<'a>
impl<'a> Send for GetResponse<'a>
impl<'a> Sync for GetResponse<'a>
impl<'a> Unpin for GetResponse<'a>
impl<'a> !UnwindSafe for GetResponse<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more