fix(PresenceUpdate): Event not emit

This commit is contained in:
March 7th
2022-07-09 20:14:18 +07:00
parent 536a86a5f3
commit 2d78b2437e
4 changed files with 35 additions and 24 deletions

View File

@@ -110,6 +110,14 @@ class Presence extends Base {
this.clientStatus ??= null;
}
if ('last_modified' in data) {
/**
* The timestamp this presence was last updated
* @type {number}
*/
this.lastModified = data.last_modified;
}
return this;
}