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:
@@ -103,11 +103,11 @@ class GroupDMChannel extends Channel {
|
||||
|
||||
/**
|
||||
* The owner of this Group DM
|
||||
* @type {User}
|
||||
* @type {?User}
|
||||
* @readonly
|
||||
*/
|
||||
get owner() {
|
||||
return this.client.users.get(this.ownerID);
|
||||
return this.client.users.get(this.ownerID) || null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user