Struct twilight_http::request::guild::emoji::CreateEmoji
source · 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<'_>
§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