diff --git a/src/listener/listener.ts b/src/listener/listener.ts index 54cdb47d..282ebfd5 100644 --- a/src/listener/listener.ts +++ b/src/listener/listener.ts @@ -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);