Attach message to error
Apparently this was causing detached logs, so just stop those complaints if the error isn't being bubbled
This commit is contained in:
@@ -34,7 +34,10 @@ async function emojisToState(emojis, guild) {
|
|||||||
if (e.data?.errcode === "M_TOO_LARGE") { // Very unlikely to happen. Only possible for 3x-series emojis uploaded shortly after animated emojis were introduced, when there was no 256 KB size limit.
|
if (e.data?.errcode === "M_TOO_LARGE") { // Very unlikely to happen. Only possible for 3x-series emojis uploaded shortly after animated emojis were introduced, when there was no 256 KB size limit.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.error(`Trying to handle emoji ${emoji.name} (${emoji.id}), but...`)
|
e["emoji"] = {
|
||||||
|
name: emoji.name,
|
||||||
|
id: emoji.id
|
||||||
|
}
|
||||||
throw e
|
throw e
|
||||||
})
|
})
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user