Fix guild_id being undefined on MongoCacheStream
This commit is contained in:
parent
e83b7cab75
commit
33200951fd
@ -56,7 +56,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user