mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
Update User.ts
This commit is contained in:
parent
88dd33a9a2
commit
66609ec5f4
@ -60,7 +60,7 @@ export class User extends BaseClass {
|
|||||||
username: string; // username max length 32, min 2 (should be configurable)
|
username: string; // username max length 32, min 2 (should be configurable)
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
discriminator: string; // #0001 4 digit long string from #0001 - #9999
|
discriminator: string; // opaque string: 4 digits on discord.com
|
||||||
|
|
||||||
setDiscriminator(val: string) {
|
setDiscriminator(val: string) {
|
||||||
const number = Number(val);
|
const number = Number(val);
|
||||||
@ -88,10 +88,10 @@ export class User extends BaseClass {
|
|||||||
mobile: boolean; // if the user has mobile app installed
|
mobile: boolean; // if the user has mobile app installed
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
premium: boolean; // if user bought nitro
|
premium: boolean; // if user bought individual premium
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
premium_type: number; // nitro level
|
premium_type: number; // individual premium level
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
bot: boolean; // if user is bot
|
bot: boolean; // if user is bot
|
||||||
@ -100,11 +100,11 @@ export class User extends BaseClass {
|
|||||||
bio: string; // short description of the user (max 190 chars -> should be configurable)
|
bio: string; // short description of the user (max 190 chars -> should be configurable)
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
system: boolean; // shouldn't be used, the api sents this field type true, if the generated message comes from a system generated author
|
system: boolean; // shouldn't be used, the api sends this field type true, if the generated message comes from a system generated author
|
||||||
|
|
||||||
@Column({ select: false })
|
@Column({ select: false })
|
||||||
nsfw_allowed: boolean; // if the user is older than 18 (resp. Config)
|
nsfw_allowed: boolean; // if the user can do age-restricted actions (NSFW channels/guilds/commands)
|
||||||
|
|
||||||
@Column({ select: false })
|
@Column({ select: false })
|
||||||
mfa_enabled: boolean; // if multi factor authentication is enabled
|
mfa_enabled: boolean; // if multi factor authentication is enabled
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user