forked from cadence/out-of-your-element
Emergency sync #11
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue