mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
consistency: getters return null instead of undefined (#2385)
This commit is contained in:
@@ -189,7 +189,7 @@ class GuildMember extends Base {
|
||||
* @readonly
|
||||
*/
|
||||
get voiceChannel() {
|
||||
return this.guild.channels.get(this.voiceChannelID);
|
||||
return this.guild.channels.get(this.voiceChannelID) || null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user