Skip to main content

emojiUrl

@discordeno/utils


Documentation / @discordeno/utils / emojiUrl

Function: emojiUrl()

emojiUrl(emojiId, animated, format): string

Defined in: packages/utils/src/images.ts:20

Get the url for an emoji.

Parameters

emojiId

BigString

The id of the emoji

animated

boolean = false

Whether or not the emoji is animated

format

ImageFormat = 'png'

The format of the image, defaults to png

Returns

string

string

Remarks

The animated parameter is used to specify the animated query parameter valid for webp images or to force the gif if the format is not set to webp.