mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Consistency with Getters.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user