mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 23:24:43 +12:00
chore: remove ws dependency (#10180)
This commit is contained in:
parent
a1a3a95c94
commit
654f1a48b9
4 changed files with 4 additions and 27 deletions
|
@ -71,13 +71,11 @@
|
|||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "workspace:^",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"@types/ws": "8.5.10",
|
||||
"discord-api-types": "0.37.61",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"tslib": "2.6.2",
|
||||
"undici": "6.7.1",
|
||||
"ws": "8.16.0"
|
||||
"undici": "6.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"@discordjs/ws",
|
||||
"discord-api-types/v10",
|
||||
"node",
|
||||
"ws",
|
||||
"tsd",
|
||||
"jest",
|
||||
"undici",
|
||||
|
|
14
packages/discord.js/typings/index.d.ts
vendored
14
packages/discord.js/typings/index.d.ts
vendored
|
@ -180,7 +180,6 @@ import { ChildProcess } from 'node:child_process';
|
|||
import { EventEmitter } from 'node:events';
|
||||
import { Stream } from 'node:stream';
|
||||
import { MessagePort, Worker } from 'node:worker_threads';
|
||||
import { Data as WebSocketData, WebSocket } from 'ws';
|
||||
import {
|
||||
RawActivityData,
|
||||
RawAnonymousGuildData,
|
||||
|
@ -5484,13 +5483,6 @@ export type EmojiIdentifierResolvable =
|
|||
|
||||
export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji;
|
||||
|
||||
export interface ErrorEvent {
|
||||
error: unknown;
|
||||
message: string;
|
||||
type: string;
|
||||
target: WebSocket;
|
||||
}
|
||||
|
||||
export interface FetchApplicationCommandOptions extends BaseFetchOptions {
|
||||
guildId?: Snowflake;
|
||||
locale?: LocaleString;
|
||||
|
@ -6203,12 +6195,6 @@ export interface MessageComponentCollectorOptions<Interaction extends CollectedM
|
|||
export interface MessageChannelComponentCollectorOptions<Interaction extends CollectedMessageInteraction>
|
||||
extends Omit<InteractionCollectorOptions<Interaction>, 'channel' | 'guild' | 'interactionType'> {}
|
||||
|
||||
export interface MessageEvent {
|
||||
data: WebSocketData;
|
||||
type: string;
|
||||
target: WebSocket;
|
||||
}
|
||||
|
||||
export interface MessageInteraction {
|
||||
id: Snowflake;
|
||||
type: InteractionType;
|
||||
|
|
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
|
@ -949,9 +949,6 @@ importers:
|
|||
'@sapphire/snowflake':
|
||||
specifier: 3.5.3
|
||||
version: 3.5.3
|
||||
'@types/ws':
|
||||
specifier: 8.5.10
|
||||
version: 8.5.10
|
||||
discord-api-types:
|
||||
specifier: 0.37.61
|
||||
version: 0.37.61
|
||||
|
@ -967,9 +964,6 @@ importers:
|
|||
undici:
|
||||
specifier: 6.7.1
|
||||
version: 6.7.1
|
||||
ws:
|
||||
specifier: 8.16.0
|
||||
version: 8.16.0
|
||||
devDependencies:
|
||||
'@discordjs/api-extractor':
|
||||
specifier: workspace:^
|
||||
|
@ -4067,7 +4061,7 @@ packages:
|
|||
dependencies:
|
||||
'@definitelytyped/typescript-versions': 0.1.1
|
||||
'@definitelytyped/utils': 0.1.5
|
||||
semver: 7.5.4
|
||||
semver: 7.6.0
|
||||
dev: true
|
||||
|
||||
/@definitelytyped/typescript-versions@0.1.1:
|
||||
|
@ -6398,7 +6392,7 @@ packages:
|
|||
request: 2.88.2
|
||||
retry: 0.12.0
|
||||
safe-buffer: 5.2.1
|
||||
semver: 7.5.4
|
||||
semver: 7.6.0
|
||||
slide: 1.1.6
|
||||
ssri: 8.0.1
|
||||
optionalDependencies:
|
||||
|
@ -21336,7 +21330,7 @@ packages:
|
|||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
hosted-git-info: 4.1.0
|
||||
semver: 7.5.4
|
||||
semver: 7.6.0
|
||||
validate-npm-package-name: 3.0.0
|
||||
dev: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue