summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorIratu <me@iratu.pro>2022-02-16 22:00:13 +0000
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-02-18 19:50:11 +0300
commit903ce169a17cc82f5a22cb5814d5a59f5812c25f (patch)
treea742fb1d37a56191bb9e8abb8041cf243fd68f69 /gateway
parentForgot the openapi.json change. (diff)
downloadserver-903ce169a17cc82f5a22cb5814d5a59f5812c25f.tar.xz
changed user.premium_since to also load from the database.
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/opcodes/Identify.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index f39ac808..904aa963 100644
--- a/gateway/src/opcodes/Identify.ts
+++ b/gateway/src/opcodes/Identify.ts
@@ -173,6 +173,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 			avatar: related_user.avatar,
 			bot: related_user.bot,
 			bio: related_user.bio,
+			premium_since: user.premium_since
 		};
 		users.push(public_related_user);
 	}
@@ -225,6 +226,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		accent_color: user.accent_color || 0,
 		banner: user.banner,
 		bio: user.bio,
+		premium_since: user.premium_since
 	};
 
 	const d: ReadyEventData = {