Emoji.from constructor
Emoji.from({
- required MemberManager memberManager,
- required EmojiManager emojiManager,
- required dynamic payload,
Implementation
factory Emoji.from({ required MemberManager memberManager, required EmojiManager emojiManager, required dynamic payload }) {
return Emoji(
payload['id'],
payload['name'],
payload['animated'] ?? false,
payload['user'] != null ? memberManager.cache.get(payload['user']['id']) : null,
payload['require_colons'] ?? false,
payload['managed'] ?? false,
payload['available'] ?? false,
emojiManager
);
}