enhance: Unicode 15.0で新たに追加された絵文字をリアクションに使えるように (#12683)

This commit is contained in:
zyoshoka
2023-12-18 14:51:29 +09:00
committed by GitHub
parent 507d436699
commit 13990279c3
7 changed files with 62 additions and 20 deletions

View File

@@ -25,7 +25,7 @@ export const commonHandlers = [
}),
rest.get('/twemoji/:codepoints.svg', async (req, res, ctx) => {
const { codepoints } = req.params;
const value = await fetch(`https://unpkg.com/@discordapp/twemoji@14.1.2/dist/svg/${codepoints}.svg`).then((response) => response.blob());
const value = await fetch(`https://unpkg.com/@discordapp/twemoji@15.0.2/dist/svg/${codepoints}.svg`).then((response) => response.blob());
return res(ctx.set('Content-Type', 'image/svg+xml'), ctx.body(value));
}),
];