From 180813d3e8157d54134f143e7b6b208c463a7dd7 Mon Sep 17 00:00:00 2001 From: Jacz Date: Sun, 12 Aug 2018 15:49:52 +1000 Subject: [PATCH] Consistency with Getters. --- src/structures/VoiceState.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/VoiceState.js b/src/structures/VoiceState.js index ebe104747..88e0ed196 100644 --- a/src/structures/VoiceState.js +++ b/src/structures/VoiceState.js @@ -58,7 +58,7 @@ class VoiceState extends Base { * @type {?GuildMember} */ get member() { - return this.guild.members.get(this.id); + return this.guild.members.get(this.id) || null; } /** @@ -66,7 +66,7 @@ class VoiceState extends Base { * @type {?VoiceChannel} */ get channel() { - return this.guild.channels.get(this.channelID); + return this.guild.channels.get(this.channelID) || null; } /**