Struct twilight_http::request::channel::reaction::CreateReaction
source · pub struct CreateReaction<'a> { /* private fields */ }Expand description
Create a reaction in a Id<ChannelMarker> on a Id<MessageMarker>.
The reaction must be a variant of RequestReactionType.
Examples
use twilight_http::{request::channel::reaction::RequestReactionType, Client};
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let channel_id = Id::new(123);
let message_id = Id::new(456);
let emoji = RequestReactionType::Unicode { name: "🌃" };
let reaction = client
.create_reaction(channel_id, message_id, &emoji)
.await?;Implementations§
source§impl<'a> CreateReaction<'a>
impl<'a> CreateReaction<'a>
Trait Implementations§
source§impl IntoFuture for CreateReaction<'_>
impl IntoFuture for CreateReaction<'_>
§type Output = Result<Response<EmptyBody>, Error>
type Output = Result<Response<EmptyBody>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<EmptyBody>
type IntoFuture = ResponseFuture<EmptyBody>
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