mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
chore: remove ws dependency (#10180)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user