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

View file

@ -57,7 +57,7 @@ async function doClone(guildId: string, id: string, name: string, isAnimated: bo
reader.onload = () => { reader.onload = () => {
uploadEmoji({ uploadEmoji({
guildId, guildId,
name, name: name.split("~")[0],
image: reader.result image: reader.result
}).then(() => { }).then(() => {
Toasts.show({ Toasts.show({