mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Fix presences, damn it hydra
This commit is contained in:
@@ -3,6 +3,7 @@ const Role = require('./Role');
|
||||
const EvaluatedPermissions = require('./EvaluatedPermissions');
|
||||
const Constants = require('../util/Constants');
|
||||
const Collection = require('../util/Collection');
|
||||
const Presence = require('./Presence').Presence;
|
||||
|
||||
/**
|
||||
* Represents a Member of a Guild on Discord
|
||||
@@ -107,7 +108,7 @@ class GuildMember {
|
||||
* @readonly
|
||||
*/
|
||||
get presence() {
|
||||
return this.frozenPresence || this.guild.presences.get(this.id);
|
||||
return this.frozenPresence || this.guild.presences.get(this.id) || new Presence();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user