mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-20 06:35:39 +00:00
Fix some comments
This commit is contained in:
@@ -91,6 +91,7 @@ export const PublicMemberProjection: PublicMemberKeys[] = [
|
||||
"flags",
|
||||
];
|
||||
|
||||
// TODO: make a proper schema rather than inheriting entity
|
||||
export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & {
|
||||
user: PublicUser;
|
||||
roles: string[]; // only role ids not objects
|
||||
|
||||
@@ -297,7 +297,7 @@ export class User extends BaseClass {
|
||||
req?: Request;
|
||||
bot?: boolean;
|
||||
}) {
|
||||
// trim special uf8 control characters -> Backspace, Newline, ...
|
||||
// trim special utf8 control characters -> Backspace, Newline, ...
|
||||
username = trimSpecial(username);
|
||||
|
||||
const discriminator = await User.generateDiscriminator(username);
|
||||
|
||||
Reference in New Issue
Block a user