From 4e22cf5eb7613cb618a39d08825dd2fff8eec495 Mon Sep 17 00:00:00 2001 From: rubyowo Date: Thu, 16 Feb 2023 18:48:55 +0400 Subject: [PATCH] fix: twemoji cdn url --- backend/src/plugins/Utility/commands/JumboCmd.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Utility/commands/JumboCmd.ts b/backend/src/plugins/Utility/commands/JumboCmd.ts index d07855c1..979420a9 100644 --- a/backend/src/plugins/Utility/commands/JumboCmd.ts +++ b/backend/src/plugins/Utility/commands/JumboCmd.ts @@ -31,7 +31,7 @@ function resizeBuffer(input: Buffer, width: number, height: number): Buffer { return photonImageToBuffer(photonImage); } -const CDN_URL = "https://twemoji.maxcdn.com/"; +const CDN_URL = "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/"; export const JumboCmd = utilityCmd({ trigger: "jumbo", @@ -71,7 +71,7 @@ export const JumboCmd = utilityCmd({ file = new MessageAttachment(image, `emoji${extension}`); } } else { - let url = `${twemoji.base}${twemoji.size}/${twemoji.convert.toCodePoint(args.emoji)}${twemoji.ext}`; + let url = `${CDN_URL}${twemoji.size}/${twemoji.convert.toCodePoint(args.emoji)}${twemoji.ext}`; let image: Buffer | undefined; try { const downloadedBuffer = await getBufferFromUrl(url);