Remove unwise nextTick delay
This commit is contained in:
@@ -55,10 +55,8 @@ class DiscordClient {
|
|||||||
this.guildChannelMap = new Map()
|
this.guildChannelMap = new Map()
|
||||||
if (listen !== "no") {
|
if (listen !== "no") {
|
||||||
this.cloud.on("event", message => {
|
this.cloud.on("event", message => {
|
||||||
process.nextTick(() => {
|
|
||||||
discordPackets.onPacket(this, message, listen)
|
discordPackets.onPacket(this, message, listen)
|
||||||
})
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONNECTION_DEBUG) {
|
if (CONNECTION_DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user