Fix presences probably ¯\_(ツ)_/¯

This commit is contained in:
Amish Shah
2016-10-01 15:27:49 +01:00
parent ab15c45d96
commit 7c26603773
5 changed files with 31 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ class GuildMember {
* @readonly
*/
get presence() {
return this.guild.presences.get(this.id);
return this.frozenPresence || this.guild.presences.get(this.id);
}
/**

View File

@@ -3,6 +3,7 @@
*/
class Presence {
constructor(data) {
if (!data) return;
/**
* The status of the presence:
*