summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:30:24 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:30:24 +0200
commit6fbfcac1ba72ad123700824535c1e076190f4630 (patch)
tree34f52baae90bb8e5d7aec50823ea24a931be347e /src
parent:rewind: revert guilds in user_data (diff)
downloadserver-6fbfcac1ba72ad123700824535c1e076190f4630.tar.xz
:sparkles: add date of birth to user
Diffstat (limited to 'src')
-rw-r--r--src/models/User.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/User.ts b/src/models/User.ts
index eb6a4182..fb914fa0 100644
--- a/src/models/User.ts
+++ b/src/models/User.ts
@@ -13,6 +13,7 @@ export interface User {
 	mobile: boolean; // if the user has mobile app installed
 	premium: boolean; // if user bought nitro
 	premium_type: number; // nitro level
+	date_of_birth: Date;
 	bot: boolean; // if user is bot
 	system: boolean; // shouldn't be used, the api sents this field type true, if the genetaed message comes from a system generated author
 	nsfw_allowed: boolean; // if the user is older than 18 (resp. Config)
@@ -126,6 +127,7 @@ export const UserSchema = new Schema({
 	desktop: Boolean,
 	mobile: Boolean,
 	premium: Boolean,
+	date_of_birth: Date,
 	premium_type: Number,
 	bot: Boolean,
 	system: Boolean,