mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
fix: twemoji cdn url
This commit is contained in:
parent
801cd2630b
commit
4e22cf5eb7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue