pub struct GetEmojis<'a> { /* private fields */ }Expand description
Get the emojis for a guild, by the guild’s id.
§Examples
Get the emojis for guild 100:
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(100);
client.emojis(guild_id).await?;Trait Implementations§
Source§impl IntoFuture for GetEmojis<'_>
impl IntoFuture for GetEmojis<'_>
Source§type Output = Result<Response<ListBody<Emoji>>, Error>
type Output = Result<Response<ListBody<Emoji>>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<ListBody<Emoji>>
type IntoFuture = ResponseFuture<ListBody<Emoji>>
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
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetEmojis<'a>
impl<'a> !UnwindSafe for GetEmojis<'a>
impl<'a> Forget for GetEmojis<'a>
impl<'a> Freeze for GetEmojis<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: Freeze,
NonZero<u64>: Freeze,
&'a Client: Freeze,
impl<'a> Move for GetEmojis<'a>
impl<'a> Send for GetEmojis<'a>
impl<'a> Sync for GetEmojis<'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,
impl<'a> Unpin for GetEmojis<'a>
impl<'a> UnsafeUnpin for GetEmojis<'a>where
PhantomData<fn(GuildMarker) -> GuildMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'a Client: 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