mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
chore: remove ws dependency (#10180)
This commit is contained in:
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