1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

🐛 fix event listener

This commit is contained in:
Flam3rboy 2021-04-09 14:20:18 +02:00
parent 0e582bf71b
commit 075d19607f

View File

@ -59,7 +59,7 @@ export async function dispatch(this: WebSocket, document: Event, { eventStream,
guilds.push(document.guild_id); guilds.push(document.guild_id);
eventStream.changeStream(getPipeline.call(this, guilds)); eventStream.changeStream(getPipeline.call(this, guilds));
} else if (document.event === "GUILD_DELETE") { } else if (document.event === "GUILD_DELETE") {
guilds.remove(document.guild); guilds.remove(document.guild_id);
eventStream.changeStream(getPipeline.call(this, guilds)); eventStream.changeStream(getPipeline.call(this, guilds));
} }