mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
14 lines
472 B
TypeScript
14 lines
472 B
TypeScript
import { Bot } from "../../bot.ts";
|
|
import { BigString } from "../../types/shared.ts";
|
|
|
|
/**
|
|
* Builds a URL to an emoji in the Discord CDN.
|
|
*
|
|
* @param emojiId - The ID of the emoji to access.
|
|
* @param animated - Whether the emoji is animated or static.
|
|
* @returns The link to the resource.
|
|
*/
|
|
export function getEmojiURL(_bot: Bot, emojiId: BigString, animated = false): string {
|
|
return `https://cdn.discordapp.com/emojis/${emojiId}.${animated ? "gif" : "png"}`;
|
|
}
|