refactor: cleanup and fmt

This commit is contained in:
Skillz4Killz
2021-04-04 12:54:33 +00:00
committed by GitHub
parent 535f27c734
commit 1b8161e85b
26 changed files with 89 additions and 480 deletions
+7 -3
View File
@@ -22,9 +22,13 @@ export async function startGateway(options: StartGatewayOptions) {
setInterval(ws.resharder, 1000 * 60 * 60);
ws.identifyPayload.intents = options.intents.reduce(
(bits, next) =>
(bits |= typeof next === "string" ? DiscordGatewayIntents[next] : next),
0
(
bits,
next,
) => (bits |= typeof next === "string"
? DiscordGatewayIntents[next]
: next),
0,
);
const data = (await fetch(`https://discord.com/api/gateway/bot`, {