summary refs log tree commit diff
path: root/gateway/src/opcodes
diff options
context:
space:
mode:
authorNobody <git@n0bodysec.com>2022-03-08 05:07:39 -0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-03-08 18:05:41 +0300
commita042d4eb34b9bcc344014974a5131e99a6954265 (patch)
treeb4e642365ddace4009ca941251ba6ccebfcb69b6 /gateway/src/opcodes
parentFix bans list (#674) (diff)
downloadserver-a042d4eb34b9bcc344014974a5131e99a6954265.tar.xz
refactor(gateway): delete hardcoded guild boosts
Since you can set `premium_subscription_count` and `premium_tier` by editing the database (and it works fine), this should not be hardcoded.
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r--gateway/src/opcodes/Identify.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index 904aa963..eb15c28f 100644
--- a/gateway/src/opcodes/Identify.ts
+++ b/gateway/src/opcodes/Identify.ts
@@ -240,8 +240,6 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 			x.guild_hashes = {}; // @ts-ignore
 			x.guild_scheduled_events = []; // @ts-ignore
 			x.threads = [];
-			x.premium_subscription_count = 30;
-			x.premium_tier = 3;
 			return x;
 		}),
 		guild_experiments: [], // TODO