fix: export "ESM" types when discord.js is imported in ESM land (#10009)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vlad Frangu
2023-12-01 01:19:22 +02:00
committed by GitHub
parent 30f6a5fc56
commit e412a22ceb
6 changed files with 58 additions and 4 deletions

View File

@@ -231,7 +231,7 @@ import {
RawWelcomeScreenData,
RawWidgetData,
RawWidgetMemberData,
} from './rawDataTypes';
} from './rawDataTypes.js';
declare module 'node:events' {
class EventEmitter {

View File

@@ -77,7 +77,7 @@ import {
Snowflake,
APIGuildScheduledEvent,
} from 'discord-api-types/v10';
import { GuildChannel, Guild, PermissionOverwrites } from '.';
import { GuildChannel, Guild, PermissionOverwrites } from './index.js';
export type RawActivityData = GatewayActivity;