types(Formatters): allow boolean in formatEmoji (#8823)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
MrMythicalYT
2022-11-25 12:42:48 -05:00
committed by GitHub
parent f9828034cd
commit ec37f137fd

View File

@@ -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
*