Add more debugging information
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -85,6 +85,7 @@ async function _actuallyUploadDiscordFileToMxc(url) {
|
||||
writeRegistration(reg)
|
||||
return root
|
||||
}
|
||||
e.uploadURL = url
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user