summary refs log tree commit diff
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
commit22467f2596904007b66b20148d9cb600d5df0979 (patch)
tree21af8e9b2198c6263e3f09f5bb84ff26df961400
parentFix bans list (#674) (diff)
downloadserver-22467f2596904007b66b20148d9cb600d5df0979.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.
-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