Emergency sync #11

Merged
Guzio merged 13 commits from cadence/out-of-your-element:main into main 2026-03-14 07:10:15 +00:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 6ca1b836e1 - Show all commits

View file

@ -52,7 +52,11 @@ class DiscordClient {
/** @type {Map<string, Array<string>>} */
this.guildChannelMap = new Map()
if (listen !== "no") {
this.cloud.on("event", message => discordPackets.onPacket(this, message, listen))
this.cloud.on("event", message => {
process.nextTick(() => {
discordPackets.onPacket(this, message, listen)
})
})
}
const addEventLogger = (eventName, logName) => {

View file

@ -85,6 +85,7 @@ async function _actuallyUploadDiscordFileToMxc(url) {
writeRegistration(reg)
return root
}
e.uploadURL = url
throw e
}
}