1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00
This commit is contained in:
Flam3rboy 2021-05-18 22:04:31 +02:00
commit 671091a13f

View File

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