Skip to content

Commit

Permalink
types(Formatters): allow boolean in formatEmoji (#8823)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
MrMythicalYT and kodiakhq[bot] committed Nov 25, 2022
1 parent f982803 commit ec37f13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/builders/src/messages/formatters.ts
Expand Up @@ -264,6 +264,14 @@ export function formatEmoji<C extends Snowflake>(emojiId: C, animated?: false):
*/
export function formatEmoji<C extends Snowflake>(emojiId: C, animated?: true): `<a:_:${C}>`;

/**
* Formats an emoji ID into a fully qualified emoji identifier
*
* @param emojiId - The emoji ID to format
* @param animated - Whether the emoji is animated or not. Defaults to `false`
*/
export function formatEmoji<C extends Snowflake>(emojiId: C, animated?: boolean): `<:_:${C}>` | `<a:_:${C}>`;

/**
* Formats an emoji ID into a fully qualified emoji identifier
*
Expand Down

0 comments on commit ec37f13

Please sign in to comment.