add right to resend verification emails

This commit is contained in:
Puyodead1
2023-02-23 22:52:24 -05:00
committed by Puyodead1
parent 1aba7d591c
commit ada821070b
3 changed files with 28 additions and 23 deletions
@@ -35,5 +35,5 @@ export class RegisterConfiguration {
allowMultipleAccounts: boolean = true;
blockProxies: boolean = true;
incrementingDiscriminators: boolean = false; // random otherwise
defaultRights: string = "312119568366592"; // See `npm run generate:rights`
defaultRights: string = "875069521787904"; // See `npm run generate:rights`
}
+1
View File
@@ -93,6 +93,7 @@ export class Rights extends BitField {
EDIT_FLAGS: BitFlag(46), // can set others' flags
MANAGE_GROUPS: BitFlag(47), // can manage others' groups
VIEW_SERVER_STATS: BitFlag(48), // added per @chrischrome's request — can view server stats)
RESEND_VERIFICATION_EMAIL: BitFlag(49), // can resend verification emails (/auth/verify/resend)
};
any(permission: RightResolvable, checkOperator = true) {