aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegumin <megumin.bakaretsurie@gmail.com>2023-01-23 21:11:28 +0000
committerGitHub <noreply@github.com>2023-01-23 21:11:28 +0000
commit83757b19be30811f54a4d31adecb741a343be345 (patch)
tree5f821570396fb1cec1032f178b16ed9a9e84357b
parent75050e74ca01856f9b48867d7945e2b7263b42ae (diff)
downloadVencord-83757b19be30811f54a4d31adecb741a343be345.tar.gz
Vencord-83757b19be30811f54a4d31adecb741a343be345.tar.bz2
Vencord-83757b19be30811f54a4d31adecb741a343be345.zip
fix: emojis with duplicate names failing to clone (#449)
-rw-r--r--src/plugins/emoteCloner.tsx2
1 files changed, 1 insertions, 1 deletions
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({