Emoji class final

Inheritance

Constructors

Emoji(Snowflake serverId, {required Snowflake id, required String name, required Map<Snowflake, Role> roles, required bool managed, required bool available, required bool animated})

Properties

animated bool
finalinherited
available bool
final
hashCode int
The hash code for this object.
no setterinherited
id Snowflake?
finalinherited
managed bool
final
name String
finalinherited
roles Map<Snowflake, Role>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId Snowflake
final

Methods

addRole(Snowflake role, {String? reason}) Future<void>
Add role
delete({String? reason}) Future<void>
Delete an emoji.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRole(Snowflake role, {String? reason}) Future<void>
Remove role
setImage(Image image, {String? reason}) Future<void>
Update image
setName(String name, {String? reason}) Future<void>
Update name
setRoles(List<Snowflake> roles, {String? reason}) Future<void>
Update roles
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
update({String? name, Image? image, List<Snowflake> roles = const [], String? reason}) Future<void>
Update an emoji.

Operators

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