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> !RefUnwindSafe for CreateGuildSticker<'a>
impl<'a> !UnwindSafe for CreateGuildSticker<'a>
impl<'a> Forget for CreateGuildSticker<'a>
impl<'a> Freeze for CreateGuildSticker<'a>
impl<'a> Move for CreateGuildSticker<'a>
impl<'a> Send for CreateGuildSticker<'a>
impl<'a> Sync for CreateGuildSticker<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
NonZero<i32>: Sync,
impl<'a> Unpin for CreateGuildSticker<'a>
impl<'a> UnsafeUnpin for CreateGuildSticker<'a>where
&'a str: UnsafeUnpin,
&'a [u8]: UnsafeUnpin,
PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a Client: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
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