# EmojiMap

`interface` in `types` · v0.7.1-next.0

<https://docs.seedcord.org/packages/types/0.7.1-next.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, and `Emojis.X` reads that tag to type each emoji as the precise `ApplicationEmoji` or `GuildEmoji`. 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';
Emojis.ThumbsUp; // ApplicationEmoji
Emojis.Lol; // GuildEmoji
```
