fix: emojis with duplicate names failing to clone (#449)
This commit is contained in:
parent
75050e74ca
commit
83757b19be
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue