fix: emojis with duplicate names failing to clone (#449)

This commit is contained in:
megumin 2023-01-23 21:11:28 +00:00 committed by GitHub
parent 75050e74ca
commit 83757b19be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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({