fix(api): exempt bots from being considered unclaimed users (#45)
This commit is contained in:
@@ -139,6 +139,10 @@ export class User {
|
||||
return checkIsPremium(this);
|
||||
}
|
||||
|
||||
isUnclaimedAccount(): boolean {
|
||||
return this.passwordHash === null && !this.isBot;
|
||||
}
|
||||
|
||||
canUseGlobalExpressions(): boolean {
|
||||
return this.isPremium() || this.isBot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user