Emoji class

Represents an Emoji on Guild context.

Constructors

Emoji(Snowflake _id, String _label, bool _animated, GuildMember? _creator, bool _requireColons, bool _managed, bool _available, EmojiManager _manager)
Emoji.from({required MemberManager memberManager, required EmojiManager emojiManager, required dynamic payload})
factory

Properties

available bool
no setter
creator GuildMember?
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
no setterinherited
isAnimated bool
no setterinherited
label String
no setterinherited
managed bool
no setter
manager → EmojiManager
no setter
requireColons bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete({String? reason}) Future<void>
Removes the current this from the EmojiManager's cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAllowedRoles(List<Snowflake> roles, {String? reason}) Future<void>
setLabel(String label, {String? reason}) Future<void>
Modifies the label of this.
toJson() Object
inherited
toString() String
Returns this in discord notification format
override

Operators

operator ==(Object other) bool
The equality operator.
inherited