summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 18:39:57 +0200
committerGitHub <noreply@github.com>2021-10-15 18:39:57 +0200
commit0c811dbee9b960b7b1ef28a85ff79e86672af856 (patch)
treea25db8eb098d5651df8228911bc01716abef1cf6 /gateway
parentMerge pull request #462 from hbjydev/unit-tests-expanded (diff)
parent:sparkles: sticker events (diff)
downloadserver-0c811dbee9b960b7b1ef28a85ff79e86672af856.tar.xz
Merge pull request #455 from fosscord/sticker
Stickers
Diffstat (limited to '')
-rw-r--r--gateway/client.js2
-rw-r--r--gateway/src/opcodes/Identify.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/gateway/client.js b/gateway/client.js

index 34a59458..c841c6a0 100644 --- a/gateway/client.js +++ b/gateway/client.js
@@ -3,7 +3,7 @@ const WebSocket = require("ws"); const Constants = require("./dist/util/Constants"); // const ws = new WebSocket("ws://127.0.0.1:8080"); -const ws = new WebSocket("wss://gateway.discord.gg"); +const ws = new WebSocket("wss://dev.fosscord.com"); ws.on("open", () => { // ws.send(JSON.stringify({ req_type: "new_auth" })); diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts
index c91ca5dd..2f9d4632 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts
@@ -179,6 +179,8 @@ 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