From 83757b19be30811f54a4d31adecb741a343be345 Mon Sep 17 00:00:00 2001 From: megumin Date: Mon, 23 Jan 2023 21:11:28 +0000 Subject: [PATCH] fix: emojis with duplicate names failing to clone (#449) --- src/plugins/emoteCloner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx index c22eebd..bb74406 100644 --- a/src/plugins/emoteCloner.tsx +++ b/src/plugins/emoteCloner.tsx @@ -57,7 +57,7 @@ async function doClone(guildId: string, id: string, name: string, isAnimated: bo reader.onload = () => { uploadEmoji({ guildId, - name, + name: name.split("~")[0], image: reader.result }).then(() => { Toasts.show({