This commit is contained in:
Skillz4Killz
2020-12-27 00:06:16 +00:00
committed by GitHub
parent af156b6b25
commit e1d115ca0a
2 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ const baseGuild: Partial<Guild> = {
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!);

View File

@@ -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) {