From 46f77f8e380b3e377e72c4bdab3d888b903d00af Mon Sep 17 00:00:00 2001 From: Iratu Date: Wed, 16 Feb 2022 22:00:13 +0000 Subject: changed user.premium_since to also load from the database. --- util/src/entities/User.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util') diff --git a/util/src/entities/User.ts b/util/src/entities/User.ts index f157ac39..1d18c838 100644 --- a/util/src/entities/User.ts +++ b/util/src/entities/User.ts @@ -16,6 +16,7 @@ export enum PublicUserEnum { banner, bio, bot, + premium_since, } export type PublicUserKeys = keyof typeof PublicUserEnum; @@ -110,6 +111,9 @@ export class User extends BaseClass { @Column() created_at: Date; // registration date + @Column({ nullable: true }) + premium_since: Date; // premium date + @Column({ select: false }) verified: boolean; // if the user is offically verified @@ -246,6 +250,7 @@ export class User extends BaseClass { id: Snowflake.generate(), bot: false, system: false, + premium_since: new Date(), desktop: false, mobile: false, premium: true, -- cgit 1.4.1