diff --git a/src/api/structures/guild.ts b/src/api/structures/guild.ts index 60fa94a05..9d56e3d9a 100644 --- a/src/api/structures/guild.ts +++ b/src/api/structures/guild.ts @@ -59,7 +59,7 @@ const baseGuild: Partial = { return this.bot?.guilds.get(this.id!); }, get botVoice() { - return this.voiceStates.get(botID); + return this.voiceStates?.get(botID); }, get owner() { return cache.members.get(this.ownerID!); diff --git a/src/ws/shard.ts b/src/ws/shard.ts index 1125106ee..6678f02cd 100644 --- a/src/ws/shard.ts +++ b/src/ws/shard.ts @@ -110,7 +110,10 @@ export async function createShard( break; case GatewayOpcode.InvalidSession: eventHandlers.debug?.( - { type: "gatewayInvalidSession", data: { shardID: basicShard.id, data } }, + { + type: "gatewayInvalidSession", + data: { shardID: basicShard.id, data }, + }, ); // When d is false we need to reidentify if (!data.d) {