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