mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
refactor!: rename the ws folder to gateway (#2037)
This commit is contained in:
4
.github/workflows/local_tests.yml
vendored
4
.github/workflows/local_tests.yml
vendored
@@ -11,7 +11,7 @@ on:
|
||||
- "transformers/**"
|
||||
- "types/**"
|
||||
- "util/**"
|
||||
- "ws/**"
|
||||
- "gateway/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- "handlers/**"
|
||||
@@ -22,7 +22,7 @@ on:
|
||||
- "transformers/**"
|
||||
- "types/**"
|
||||
- "util/**"
|
||||
- "ws/**"
|
||||
- "gateway/**"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
2
bot.ts
2
bot.ts
@@ -31,7 +31,7 @@ import {
|
||||
} from "./util/constants.ts";
|
||||
import { Errors } from "./types/discordeno/errors.ts";
|
||||
import { DiscordGatewayPayload, GatewayDispatchEventNames, GatewayPayload } from "./types/gateway/gatewayPayload.ts";
|
||||
import { createGatewayManager, GatewayManager } from "./ws/mod.ts";
|
||||
import { createGatewayManager, GatewayManager } from "./gateway/mod.ts";
|
||||
import { validateLength } from "./util/validateLength.ts";
|
||||
import { delay, formatImageURL, hasProperty } from "./util/utils.ts";
|
||||
import { iconBigintToHash, iconHashToBigInt } from "./util/hash.ts";
|
||||
|
||||
2
dnt.ts
2
dnt.ts
@@ -31,7 +31,7 @@ await build({
|
||||
},
|
||||
{
|
||||
name: "./gateway",
|
||||
path: "ws/mod.ts",
|
||||
path: "gateway/mod.ts",
|
||||
},
|
||||
{
|
||||
name: "./types",
|
||||
|
||||
2
mod.ts
2
mod.ts
@@ -5,4 +5,4 @@ export * from "./rest/mod.ts";
|
||||
export * from "./transformers/mod.ts";
|
||||
export * from "./types/mod.ts";
|
||||
export * from "./util/mod.ts";
|
||||
export * from "./ws/mod.ts";
|
||||
export * from "./gateway/mod.ts";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GatewayManager } from "../ws/gateway_manager.ts";
|
||||
import { GatewayManager } from "../gateway/gateway_manager.ts";
|
||||
|
||||
export function calculateShardId(gateway: GatewayManager, guildId: bigint) {
|
||||
if (gateway.maxShards === 1) return 0;
|
||||
|
||||
Reference in New Issue
Block a user