pub struct CreateEmoji<'a> { /* private fields */ }
Expand description
Create an emoji in a guild.
The emoji must be a Data URI, in the form of
data:image/{type};base64,{data}
where {type}
is the image MIME type and
{data}
is the base64-encoded image. See Discord Docs/Image Data.
Implementations§
source§impl<'a> CreateEmoji<'a>
impl<'a> CreateEmoji<'a>
sourcepub const fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
pub const fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
Whitelist roles for this emoji.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for CreateEmoji<'a>
impl<'a> AuditLogReason<'a> for CreateEmoji<'a>
source§impl IntoFuture for CreateEmoji<'_>
impl IntoFuture for CreateEmoji<'_>
source§type Output = Result<Response<Emoji>, Error>
type Output = Result<Response<Emoji>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Emoji>
type IntoFuture = ResponseFuture<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
source§impl TryIntoRequest for CreateEmoji<'_>
impl TryIntoRequest for CreateEmoji<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateEmoji<'a>
impl<'a> !RefUnwindSafe for CreateEmoji<'a>
impl<'a> Send for CreateEmoji<'a>
impl<'a> Sync for CreateEmoji<'a>
impl<'a> Unpin for CreateEmoji<'a>
impl<'a> !UnwindSafe for CreateEmoji<'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