Add more debugging information

This commit is contained in:
Cadence Ember
2026-03-11 12:38:05 +13:00
parent ada3933d9c
commit 6ca1b836e1
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ class DiscordClient {
/** @type {Map<string, Array<string>>} */ /** @type {Map<string, Array<string>>} */
this.guildChannelMap = new Map() this.guildChannelMap = new Map()
if (listen !== "no") { 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) => { const addEventLogger = (eventName, logName) => {
+1
View File
@@ -85,6 +85,7 @@ async function _actuallyUploadDiscordFileToMxc(url) {
writeRegistration(reg) writeRegistration(reg)
return root return root
} }
e.uploadURL = url
throw e throw e
} }
} }