From 5af4c2066e7ac83349cf2b4505e25b605311439b Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Thu, 16 Jun 2022 20:47:25 +0000 Subject: [PATCH] fix: propertie changes --- gateway/shard/createShard.ts | 34 +++------------------------------- gateway/shard/types.ts | 6 +++--- 2 files changed, 6 insertions(+), 34 deletions(-) diff --git a/gateway/shard/createShard.ts b/gateway/shard/createShard.ts index de230d5c4..63752f1a1 100644 --- a/gateway/shard/createShard.ts +++ b/gateway/shard/createShard.ts @@ -60,9 +60,9 @@ export function createShard( compress: options.gatewayConfig.compress ?? false, intents: options.gatewayConfig.intents ?? 0, properties: { - $os: options.gatewayConfig?.properties?.$os ?? Deno.build.os, - $browser: options.gatewayConfig?.properties?.$browser ?? "Discordeno", - $device: options.gatewayConfig?.properties?.$device ?? "Discordeno", + os: options.gatewayConfig?.properties?.os ?? Deno.build.os, + browser: options.gatewayConfig?.properties?.browser ?? "Discordeno", + device: options.gatewayConfig?.properties?.device ?? "Discordeno", }, token: options.gatewayConfig.token, url: options.gatewayConfig.url ?? "wss://gateway.discord.gg", @@ -224,34 +224,6 @@ export function createShard( }; } -// const shard = createShard({ -// id: 0, -// gatewayConfig: { -// compress: true, -// url: "wss://gateway.discord.gg", -// version: 10, -// intents: 1 << 1, -// properties: { -// $os: "Discordeno", -// $browser: "Discordeno", -// $device: "Discordeno", -// }, -// token: TOKEN, -// }, -// totalShards: 1, -// makePresence: (shardId) => ({ -// activities: [ -// { -// name: `Cards Against Humanity #${shardId}`, -// type: 0, -// createdAt: Date.now(), -// }, -// ], -// status: "dnd", -// }), -// requestIdentify: async () => {}, -// }); - export interface CreateShard { /** Id of the shard which should be created. */ id: number; diff --git a/gateway/shard/types.ts b/gateway/shard/types.ts index 033229558..a9e326ded 100644 --- a/gateway/shard/types.ts +++ b/gateway/shard/types.ts @@ -50,17 +50,17 @@ export interface ShardGatewayConfig { * * @default "darwin" | "linux" | "windows" */ - $os: string; + os: string; /** The "browser" where this shard is running on. * * @default "Discordeno" */ - $browser: string; + browser: string; /** The device on which the shard is running. * * @default "Discordeno" */ - $device: string; + device: string; }; /** Bot token which is used to connect to Discord */ token: string;