feat: helper method to check if user is us

This commit is contained in:
Paul Makles
2023-11-27 17:45:44 +00:00
parent 7423e90dab
commit 11f57ebf33
+7
View File
@@ -116,6 +116,13 @@ export class User {
return this.#collection.getUnderlyingObject(this.id).bot;
}
/**
* Whether this user is ourselves
*/
get self() {
return this.#collection.client.user === this;
}
/**
* URL to the user's default avatar
*/