diff options
author | Iratu <me@iratu.pro> | 2022-02-16 22:00:13 +0000 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-02-18 19:50:11 +0300 |
commit | 46f77f8e380b3e377e72c4bdab3d888b903d00af (patch) | |
tree | 600b52ce6365e015e9e4a2f0de112b576c62f862 /gateway | |
parent | Forgot the openapi.json change. (diff) | |
download | server-46f77f8e380b3e377e72c4bdab3d888b903d00af.tar.xz |
changed user.premium_since to also load from the database.
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/src/opcodes/Identify.ts | 2 |
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 = { |