mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
feat: helper method to check if user is us
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user