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

main
megumin 2 years ago 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 = () => { reader.onload = () => {
uploadEmoji({ uploadEmoji({
guildId, guildId,
name, name: name.split("~")[0],
image: reader.result image: reader.result
}).then(() => { }).then(() => {
Toasts.show({ Toasts.show({

Loading…
Cancel
Save