Struct twilight_http::request::guild::sticker::GetGuildSticker
source · pub struct GetGuildSticker<'a> { /* private fields */ }Expand description
Returns a guild sticker by the guild’s ID and the sticker’s ID.
Examples
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(1);
let sticker_id = Id::new(2);
let sticker = client
.guild_sticker(guild_id, sticker_id)
.await?
.model()
.await?;
println!("{sticker:#?}");Implementations§
source§impl<'a> GetGuildSticker<'a>
impl<'a> GetGuildSticker<'a>
Trait Implementations§
source§impl IntoFuture for GetGuildSticker<'_>
impl IntoFuture for GetGuildSticker<'_>
§type Output = Result<Response<Sticker>, Error>
type Output = Result<Response<Sticker>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<Sticker>
type IntoFuture = ResponseFuture<Sticker>
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