changed user.premium_since to also load from the database.

This commit is contained in:
Iratu
2022-02-18 19:50:11 +03:00
committed by Erkin Alp Güney
parent 3352f3b75a
commit 46f77f8e38
4 changed files with 12 additions and 1 deletions
+2
View File
@@ -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 = {