Consistency with Getters.

This commit is contained in:
Jacz
2018-08-12 15:49:52 +10:00
committed by Amish Shah
parent f9da255b44
commit 180813d3e8

View File

@@ -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;
}
/**