pub struct CreateGuildSticker<'a> { /* private fields */ }
Expand description
Creates a sticker in a guild, and returns the created sticker.
§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 = client
.create_guild_sticker(
guild_id,
&"sticker name",
&"sticker description",
&"sticker,tags",
&[23, 23, 23, 23],
)
.await?
.model()
.await?;
println!("{sticker:#?}");
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for CreateGuildSticker<'a>
impl<'a> AuditLogReason<'a> for CreateGuildSticker<'a>
source§impl IntoFuture for CreateGuildSticker<'_>
impl IntoFuture for CreateGuildSticker<'_>
source§type Output = Result<Response<Sticker>, Error>
type Output = Result<Response<Sticker>, Error>
The output that the future will produce on completion.
source§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
source§impl TryIntoRequest for CreateGuildSticker<'_>
impl TryIntoRequest for CreateGuildSticker<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateGuildSticker<'a>
impl<'a> !RefUnwindSafe for CreateGuildSticker<'a>
impl<'a> Send for CreateGuildSticker<'a>
impl<'a> Sync for CreateGuildSticker<'a>
impl<'a> Unpin for CreateGuildSticker<'a>
impl<'a> !UnwindSafe for CreateGuildSticker<'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