Fix presences, damn it hydra

This commit is contained in:
Amish Shah
2016-10-26 22:09:11 +01:00
parent 62cfa10ac5
commit 1fc9676ba5
2 changed files with 5 additions and 2 deletions

View File

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