From e1d115ca0ad55b6bf2832f02cc2d79b5b6eca32f Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sun, 27 Dec 2020 00:06:16 +0000 Subject: [PATCH] fmt --- src/api/structures/guild.ts | 2 +- src/ws/shard.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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) {