fix: propertie changes

This commit is contained in:
Skillz4Killz
2022-06-16 20:47:25 +00:00
committed by GitHub
parent 3f92851432
commit 5af4c2066e
2 changed files with 6 additions and 34 deletions
+3 -31
View File
@@ -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;
+3 -3
View File
@@ -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;