diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 1c22ecc3d8be..c94e415b06c7 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1,6 +1,3 @@ -// DOM types required for undici -/// - import { ActionRowBuilder as BuilderActionRow, MessageActionRowComponentBuilder, @@ -173,7 +170,7 @@ import { ChildProcess } from 'node:child_process'; import { EventEmitter } from 'node:events'; import { Stream } from 'node:stream'; import { MessagePort, Worker } from 'node:worker_threads'; -import * as WebSocket from 'ws'; +import { Data as WebSocketData, WebSocket } from 'ws'; import { RawActivityData, RawAnonymousGuildData, @@ -5898,7 +5895,7 @@ export type MessageChannelComponentCollectorOptions; export interface MessageEvent { - data: WebSocket.Data; + data: WebSocketData; type: string; target: WebSocket; }