Skip to content
Interfacetypesv0.17.0

EmojiMap

Your emoji keys, written by seedcord codegen from your emojis folder and config.bot.emojis. Each key maps to a tag, 'application' for a file or a plain name and 'guild' for a [name, guildId] tuple. Gateway reads that tag to type each emoji as the precise ApplicationEmoji or GuildEmoji. http resolves both tags to one ResolvedEmoji. Do not augment it by hand, run seedcord codegen after you change the folder or config.bot.emojis.

interface EmojiMap
// configure once in your bot config (a name, or a [name, guildId] tuple for a specific guild)
emojis: { ThumbsUp: 'thumbs_up', Lol: ['lol', '000000000000000000'] }
// after `seedcord codegen`, use it anywhere
import { Emojis } from '@seedcord/gateway';
Emojis.ThumbsUp; // ApplicationEmoji
Emojis.Lol; // GuildEmoji