mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
Consistency with Getters.
This commit is contained in:
parent
f9da255b44
commit
180813d3e8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue