# EmojiMap

`interface` in `types` · v0.17.0

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

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`.

```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
```
