Emoji class

Emoji structure

Routes for controlling emojis do not follow the normal rate limit conventions. These routes are specifically limited on a per-guild basis to prevent abuse. This means that the quota returned by our APIs may be inaccurate, and you may encounter 429s.

https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Emoji({String? id, String? name, List<String>? roles, User? user, bool? requireColons, bool? managed, bool? animated, bool? available})
Constructor
Emoji.fromJson(Map<String, dynamic> json)
From json
factory

Properties

animated bool?
whether this emoji is animated
final
available bool?
whether this emoji can be used, may be false due to loss of Server Boosts
final
hashCode int
The hash code for this object.
no setterinherited
id String?
emoji id
final
managed bool?
whether this emoji is managed
final
name String?
emoji name
final
requireColons bool?
whether this emoji must be wrapped in colons
final
roles List<String>?
roles allowed to use this emoji
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User?
user that created this emoji
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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