GuildEmoji class

Emoji object. Handles Unicode emojis and custom ones. Always check if object is partial via partial field before accessing fields or methods, due any of field can be null or empty

Inheritance
Implemented types

Properties

animated bool
whether this emoji is animated
read / write, final, late
cdnUrl String
Returns cdn url to emoji
read-only
client Nyxx
Reference tp Nyxx object
read / write
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, override
guild Guild
Emojis guild
read / write, final, late, override-getter
guildId Snowflake
Emojis guild id
read / write, final, late, override-getter
hashCode int
The hash code for this object. [...]
read-only, override
id Snowflake
Snowflake id of emoji
read / write, final, late, inherited
managed bool
whether this emoji is managed
read / write, final, late
name String
Emojis name.
final, inherited
partial bool
True if emoji is partial.
final, inherited
requireColons bool
whether this emoji must be wrapped in colons
read / write, final, late
roles Iterable<IRole>
Roles which can use this emote
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete() Future<void>
Deletes emoji
edit({String name, List<Snowflake> roles}) Future<GuildEmoji>
Allows to edit emoji
encode() String
Encodes Emoji to API format
override
format() String
Formats Emoji to message format
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns encoded string ready to send via message.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override