This commit is contained in:
Elysia
2024-07-24 12:06:52 +07:00
parent bbbf40c5ac
commit 7fa4666df0
3 changed files with 16 additions and 12 deletions

View File

@@ -130,6 +130,18 @@ class Presence extends Base {
this.lastModified = data.last_modified;
}
if ('afk' in data) {
this.afk = data.afk;
} else {
this.afk ??= false;
}
if ('since' in data) {
this.since = data.since;
} else {
this.since ??= 0;
}
return this;
}