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