Emoji.from constructor

Emoji.from({
  1. required MemberManager memberManager,
  2. required EmojiManager emojiManager,
  3. 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
  );
}