# EmojiMap

`interface` in `types` · v0.11.0

<https://docs.seedcord.org/packages/types/0.11.0/interfaces/emoji-map>

The configured emoji keys, written by `seedcord codegen` from `config.bot.emojis`. Each key maps to a tag, `'application'` for 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 changing `config.bot.emojis`.

```ts
interface EmojiMap
```

## Examples

```ts
// configure once in your bot config (a name, or a [name, guildId] tuple for a specific guild)
emojis: { ThumbsUp: 'thumbs_up', Lol: ['lol', '000000000000000000'] }
```

```ts
// after `seedcord codegen`, use it anywhere
import { Emojis } from '@seedcord/gateway';
Emojis.ThumbsUp; // ApplicationEmoji
Emojis.Lol; // GuildEmoji
```
