question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recursive Dependencies not Inlined

See original GitHub issue

Bug report

Input code

index.d.ts

import { CommandInteraction } from "./discord.js"

declare const interaction: CommandInteraction;

.gitmodules

[submodule "discord.js"]
	path = discord.js
	url = https://github.com/sasial-dev/discord.js
	branch = typings/v13/ModalSubmitInteraction

Commands Attempted

npx dts-bundle-generator -o dist/index.d.ts index.d.ts npx dts-bundle-generator --external-inlines ws,discord.js,discord-api-types -o dist/index.d.ts index.d.ts

Expected Output Recursive Dependencies would be inlined.

Actual output

Errors:
Compiling input files...
Processing index.d.ts
Writing index.d.ts -> dist/index.d.ts
Checking generated files...
Compiler option "skipLibCheck" is disabled to properly check generated output
dist/index.d.ts(3,28): error TS2307: Cannot find module 'ws' or its corresponding type declarations.
dist/index.d.ts(179,31): error TS2304: Cannot find name 'GatewayActivity'.
dist/index.d.ts(181,40): error TS2304: Cannot find name 'GatewayReadyDispatchData'.
dist/index.d.ts(181,82): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(182,45): error TS2304: Cannot find name 'APIGuildIntegrationApplication'.
dist/index.d.ts(182,86): error TS2304: Cannot find name 'APIApplication'.
dist/index.d.ts(183,41): error TS2552: Cannot find name 'APIApplicationCommand'. Did you mean 'ApplicationCommandData'?
dist/index.d.ts(185,32): error TS2304: Cannot find name 'APIChannel'.
dist/index.d.ts(185,45): error TS2304: Cannot find name 'APIInteractionDataResolvedChannel'.
dist/index.d.ts(186,35): error TS2552: Cannot find name 'APIChannel'. Did you mean 'AnyChannel'?
dist/index.d.ts(186,48): error TS2304: Cannot find name 'APIInteractionDataResolvedChannel'.
dist/index.d.ts(186,93): error TS2552: Cannot find name 'APIPartialChannel'. Did you mean 'PartialDMChannel'?
dist/index.d.ts(187,44): error TS2304: Cannot find name 'APIChannel'.
dist/index.d.ts(187,66): error TS2304: Cannot find name 'APIPartialChannel'.
dist/index.d.ts(188,36): error TS2552: Cannot find name 'APIChannel'. Did you mean 'AnyChannel'?
dist/index.d.ts(188,49): error TS2304: Cannot find name 'APIInteractionDataResolvedChannel'.
dist/index.d.ts(189,71): error TS2304: Cannot find name 'GatewayActivityEmoji'.
dist/index.d.ts(189,107): error TS2304: Cannot find name 'APIPartialEmoji'.
dist/index.d.ts(190,33): error TS2304: Cannot find name 'APIEmoji'.
dist/index.d.ts(191,36): error TS2304: Cannot find name 'APIEmoji'.
dist/index.d.ts(191,47): error TS2304: Cannot find name 'APIPartialEmoji'.
dist/index.d.ts(192,36): error TS2304: Cannot find name 'APIAuditLog'.
dist/index.d.ts(193,41): error TS2304: Cannot find name 'APIAuditLogEntry'.
dist/index.d.ts(194,31): error TS2304: Cannot find name 'GatewayGuildBanAddDispatchData'.
dist/index.d.ts(194,64): error TS2304: Cannot find name 'APIBan'.
dist/index.d.ts(195,28): error TS2304: Cannot find name 'APIGuild'.
dist/index.d.ts(195,39): error TS2304: Cannot find name 'APIUnavailableGuild'.
dist/index.d.ts(198,34): error TS2304: Cannot find name 'APIPartialGuild'.
dist/index.d.ts(199,34): error TS2304: Cannot find name 'RESTAPIPartialCurrentUserGuild'.
dist/index.d.ts(200,34): error TS2304: Cannot find name 'APIGuildMember'.
dist/index.d.ts(200,51): error TS2304: Cannot find name 'APIInteractionGuildMember'.
dist/index.d.ts(200,79): error TS2304: Cannot find name 'APIInteractionDataResolvedGuildMember'.
dist/index.d.ts(200,119): error TS2304: Cannot find name 'GatewayGuildMemberAddDispatchData'.
dist/index.d.ts(200,155): error TS2304: Cannot find name 'GatewayGuildMemberUpdateDispatchData'.
dist/index.d.ts(200,203): error TS2304: Cannot find name 'RESTPatchAPICurrentGuildMemberNicknameJSONBody'.
dist/index.d.ts(202,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(205,35): error TS2304: Cannot find name 'APIThreadMember'.
dist/index.d.ts(206,35): error TS2304: Cannot find name 'APIGuildPreview'.
dist/index.d.ts(207,42): error TS2304: Cannot find name 'APIGuildScheduledEvent'.
dist/index.d.ts(208,36): error TS2304: Cannot find name 'APITemplate'.
dist/index.d.ts(209,34): error TS2304: Cannot find name 'APIGuildIntegration'.
dist/index.d.ts(210,34): error TS2304: Cannot find name 'GatewayInteractionCreateDispatchData'.
dist/index.d.ts(211,50): error TS2304: Cannot find name 'APIMessageComponentInteraction'.
dist/index.d.ts(212,47): error TS2304: Cannot find name 'APIMessageButtonInteractionData'.
dist/index.d.ts(213,51): error TS2304: Cannot find name 'APIMessageSelectMenuInteractionData'.
dist/index.d.ts(214,41): error TS2304: Cannot find name 'APITextInputComponent'.
dist/index.d.ts(215,45): error TS2304: Cannot find name 'APIModalSubmitInteraction'.
dist/index.d.ts(216,29): error TS2304: Cannot find name 'APIExtendedInvite'.
dist/index.d.ts(216,49): error TS2304: Cannot find name 'APIInvite'.
dist/index.d.ts(216,62): error TS2304: Cannot find name 'GatewayInviteCreateDispatchData'.
dist/index.d.ts(219,7): error TS2304: Cannot find name 'GatewayInviteDeleteDispatchData'.
dist/index.d.ts(223,38): error TS2304: Cannot find name 'APIInviteStageInstance'.
dist/index.d.ts(224,30): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(225,37): error TS2304: Cannot find name 'GatewayMessageUpdateDispatchData'.
dist/index.d.ts(226,40): error TS2304: Cannot find name 'APIAttachment'.
dist/index.d.ts(227,37): error TS2304: Cannot find name 'RESTPostAPIChannelMessageJSONBody'.
dist/index.d.ts(227,73): error TS2304: Cannot find name 'RESTPatchAPIChannelMessageJSONBody'.
dist/index.d.ts(227,110): error TS2304: Cannot find name 'RESTPostAPIWebhookWithTokenJSONBody'.
dist/index.d.ts(227,148): error TS2304: Cannot find name 'RESTPatchAPIWebhookWithTokenJSONBody'.
dist/index.d.ts(227,187): error TS2304: Cannot find name 'RESTPostAPIInteractionCallbackFormDataBody'.
dist/index.d.ts(227,232): error TS2304: Cannot find name 'RESTPatchAPIInteractionOriginalResponseJSONBody'.
dist/index.d.ts(227,282): error TS2304: Cannot find name 'RESTPostAPIInteractionFollowupJSONBody'.
dist/index.d.ts(227,323): error TS2304: Cannot find name 'RESTPatchAPIInteractionFollowupJSONBody'.
dist/index.d.ts(228,38): error TS2304: Cannot find name 'APIReaction'.
dist/index.d.ts(228,52): error TS2304: Cannot find name 'GatewayMessageReactionAddDispatchData'.
dist/index.d.ts(229,42): error TS2304: Cannot find name 'APIOverwrite'.
dist/index.d.ts(230,31): error TS2304: Cannot find name 'GatewayPresenceUpdate'.
dist/index.d.ts(231,27): error TS2304: Cannot find name 'APIRole'.
dist/index.d.ts(232,37): error TS2304: Cannot find name 'GatewayActivityAssets'.
dist/index.d.ts(233,36): error TS2304: Cannot find name 'APIStageInstance'.
dist/index.d.ts(233,64): error TS2304: Cannot find name 'APIStageInstance'.
dist/index.d.ts(233,89): error TS2304: Cannot find name 'APIStageInstance'.
dist/index.d.ts(234,30): error TS2304: Cannot find name 'APISticker'.
dist/index.d.ts(234,43): error TS2304: Cannot find name 'APIStickerItem'.
dist/index.d.ts(235,34): error TS2304: Cannot find name 'APIStickerPack'.
dist/index.d.ts(236,27): error TS2304: Cannot find name 'APITeam'.
dist/index.d.ts(237,33): error TS2304: Cannot find name 'APITeamMember'.
dist/index.d.ts(238,29): error TS2304: Cannot find name 'GatewayTypingStartDispatchData'.
dist/index.d.ts(239,28): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(240,16): error TS2304: Cannot find name 'APIGuildMember'.
dist/index.d.ts(241,7): error TS2304: Cannot find name 'GatewayPresenceUpdate'.
dist/index.d.ts(241,44): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(242,34): error TS2304: Cannot find name 'APIVoiceRegion'.
dist/index.d.ts(243,33): error TS2304: Cannot find name 'GatewayVoiceState'.
dist/index.d.ts(243,58): error TS2304: Cannot find name 'GatewayVoiceState'.
dist/index.d.ts(244,30): error TS2304: Cannot find name 'APIWebhook'.
dist/index.d.ts(244,43): error TS2304: Cannot find name 'RESTGetAPIWebhookWithTokenResult'.
dist/index.d.ts(244,87): error TS2304: Cannot find name 'APIWebhook'.
dist/index.d.ts(244,115): error TS2304: Cannot find name 'APIWebhook'.
dist/index.d.ts(245,37): error TS2304: Cannot find name 'APIGuildWelcomeScreenChannel'.
dist/index.d.ts(246,36): error TS2304: Cannot find name 'APIGuildWelcomeScreen'.
dist/index.d.ts(247,29): error TS2304: Cannot find name 'APIGuildWidget'.
dist/index.d.ts(248,35): error TS2304: Cannot find name 'APIGuildWidgetMember'.
dist/index.d.ts(251,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(284,1): error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
dist/index.d.ts(302,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(311,96): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(312,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(317,35): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(320,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(322,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(324,28): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(330,139): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(332,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(336,49): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(338,63): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(342,138): error TS2304: Cannot find name 'APIApplicationCommandOption'.
dist/index.d.ts(343,134): error TS2304: Cannot find name 'APIApplicationCommandOption'.
dist/index.d.ts(345,68): error TS2304: Cannot find name 'RESTPostAPIApplicationCommandsJSONBody'.
dist/index.d.ts(346,63): error TS2304: Cannot find name 'RESTPostAPIApplicationCommandsJSONBody'.
dist/index.d.ts(348,62): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(359,34): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(379,99): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(379,121): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(379,143): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(403,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(404,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(427,34): error TS2304: Cannot find name 'APIApplicationCommandOption'.
dist/index.d.ts(427,73): error TS2304: Cannot find name 'APIApplicationCommandInteractionData'.
dist/index.d.ts(428,38): error TS2304: Cannot find name 'APIApplicationCommandInteractionData'.
dist/index.d.ts(436,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(451,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(464,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(470,34): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(470,45): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(474,27): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(474,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(482,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(510,18): error TS2416: Property 'component' in type 'ButtonInteraction<Cached>' is not assignable to the same property in base type 'MessageComponentInteraction<Cached>'.
  Type 'CacheTypeReducer<Cached, MessageButton, APIButtonComponent, any, any>' is not assignable to type 'CacheTypeReducer<Cached, MessageActionRowComponent, never, MessageActionRowComponent, MessageActionRowComponent>'.
    Type 'APIButtonComponent' is not assignable to type 'never'.
dist/index.d.ts(510,69): error TS2304: Cannot find name 'APIButtonComponent'.
dist/index.d.ts(510,105): error TS2304: Cannot find name 'APIButtonComponent'.
dist/index.d.ts(510,141): error TS2304: Cannot find name 'APIButtonComponent'.
dist/index.d.ts(531,28): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(531,39): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(542,41): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(549,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(586,38): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(587,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(588,45): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(588,56): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(589,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(644,23): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(657,14): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(662,12): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(670,20): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(706,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(707,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(714,34): error TS2304: Cannot find name 'APIApplicationCommandOption'.
dist/index.d.ts(760,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(765,42): error TS2304: Cannot find name 'APIApplicationCommandInteractionData'.
dist/index.d.ts(781,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(790,26): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(790,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(791,64): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(791,75): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(793,23): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(795,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(818,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(824,33): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(827,25): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(835,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(840,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(850,38): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(850,49): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(853,35): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(855,34): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(855,45): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(886,20): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(886,31): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(887,24): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(887,35): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(888,18): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(888,29): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(906,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(909,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(931,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(933,27): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(933,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(936,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(957,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(979,22): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1025,17): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1025,28): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1026,19): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1026,30): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1029,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1041,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1042,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1043,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1044,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1052,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1091,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1095,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1096,26): error TS2304: Cannot find name 'APITemplateSerializedSourceGuild'.
dist/index.d.ts(1107,16): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1117,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1121,25): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1121,36): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1159,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1161,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1165,43): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1166,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1167,55): error TS2304: Cannot find name 'APIInteractionGuildMember'.
dist/index.d.ts(1190,77): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1195,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1198,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1200,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1203,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1203,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1204,44): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1206,44): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1208,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1208,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1211,50): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1211,61): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1215,41): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1217,93): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(1222,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1231,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1250,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1250,99): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1251,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1252,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1253,18): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1253,29): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1264,47): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1299,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1300,22): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1300,33): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1303,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1318,29): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1321,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1330,19): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1330,30): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1336,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1340,66): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1340,77): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1362,276): error TS2304: Cannot find name 'APIActionRowComponent'.
dist/index.d.ts(1362,298): error TS2304: Cannot find name 'APIModalActionRowComponent'.
dist/index.d.ts(1362,328): error TS2304: Cannot find name 'APIActionRowComponent'.
dist/index.d.ts(1362,350): error TS2304: Cannot find name 'APIMessageActionRowComponent'.
dist/index.d.ts(1372,52): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(1373,40): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(1378,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1386,48): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(1392,67): error TS2304: Cannot find name 'APIButtonComponent'.
dist/index.d.ts(1395,16): error TS2304: Cannot find name 'APIPartialEmoji'.
dist/index.d.ts(1406,19): error TS2304: Cannot find name 'APIButtonComponent'.
dist/index.d.ts(1409,50): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1417,36): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1418,36): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1422,89): error TS2304: Cannot find name 'APIMessageComponent'.
dist/index.d.ts(1422,110): error TS2304: Cannot find name 'APIActionRowComponent'.
dist/index.d.ts(1422,132): error TS2304: Cannot find name 'APIMessageActionRowComponent'.
dist/index.d.ts(1422,200): error TS2304: Cannot find name 'APIMessageComponent'.
dist/index.d.ts(1422,221): error TS2304: Cannot find name 'APIActionRowComponent'.
dist/index.d.ts(1422,243): error TS2304: Cannot find name 'APIMessageActionRowComponent'.
dist/index.d.ts(1422,311): error TS2304: Cannot find name 'APIMessageComponent'.
dist/index.d.ts(1422,332): error TS2304: Cannot find name 'APIActionRowComponent'.
dist/index.d.ts(1422,354): error TS2304: Cannot find name 'APIMessageActionRowComponent'.
dist/index.d.ts(1425,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1466,65): error TS2304: Cannot find name 'APIEmbed'.
dist/index.d.ts(1501,38): error TS2304: Cannot find name 'APIEmbed'.
dist/index.d.ts(1502,19): error TS2304: Cannot find name 'APIEmbed'.
dist/index.d.ts(1511,47): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(1511,59): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1511,70): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1511,95): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1511,109): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1511,120): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1511,171): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(1512,21): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1512,32): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1514,20): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1514,31): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1515,28): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1515,39): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1520,27): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1520,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1522,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1522,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1523,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1523,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1524,30): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1524,41): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1543,57): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(1563,75): error TS2304: Cannot find name 'APISelectMenuComponent'.
dist/index.d.ts(1579,19): error TS2304: Cannot find name 'APISelectMenuComponent'.
dist/index.d.ts(1670,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1679,71): error TS2304: Cannot find name 'APIOverwrite'.
dist/index.d.ts(1701,17): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1704,51): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1715,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1715,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1716,48): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1717,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1718,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1721,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1721,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1724,50): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1724,61): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1734,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1736,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1752,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1754,27): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1754,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1768,61): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1784,18): error TS2416: Property 'component' in type 'SelectMenuInteraction<Cached>' is not assignable to the same property in base type 'MessageComponentInteraction<Cached>'.
  Type 'CacheTypeReducer<Cached, MessageSelectMenu, APISelectMenuComponent, any, any>' is not assignable to type 'CacheTypeReducer<Cached, MessageActionRowComponent, never, MessageActionRowComponent, MessageActionRowComponent>'.
    Type 'APISelectMenuComponent' is not assignable to type 'never'.
dist/index.d.ts(1784,73): error TS2304: Cannot find name 'APISelectMenuComponent'.
dist/index.d.ts(1784,117): error TS2304: Cannot find name 'APISelectMenuComponent'.
dist/index.d.ts(1784,161): error TS2304: Cannot find name 'APISelectMenuComponent'.
dist/index.d.ts(1795,41): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(1795,56): error TS2304: Cannot find name 'ChildProcess'.
dist/index.d.ts(1796,41): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(1796,56): error TS2304: Cannot find name 'ChildProcess'.
dist/index.d.ts(1801,21): error TS2304: Cannot find name 'MessagePort'.
dist/index.d.ts(1818,43): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1831,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1834,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1835,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1839,33): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1859,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1860,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1862,17): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1880,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1882,25): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1884,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1886,16): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1887,19): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1887,30): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1893,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1929,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1932,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1933,18): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1933,29): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1944,22): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1988,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(1989,32): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(1989,43): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2002,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2004,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2032,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2059,24): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(2071,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2088,70): error TS2304: Cannot find name 'APIInteractionGuildMember'.
dist/index.d.ts(2120,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2123,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2146,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2148,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2150,23): error TS2304: Cannot find name 'APIUser'.
dist/index.d.ts(2151,30): error TS2304: Cannot find name 'APIPartialGuild'.
dist/index.d.ts(2152,38): error TS2304: Cannot find name 'APIPartialChannel'.
dist/index.d.ts(2159,24): error TS2304: Cannot find name 'APIPartialGuild'.
dist/index.d.ts(2160,32): error TS2304: Cannot find name 'APIPartialChannel'.
dist/index.d.ts(2168,120): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2169,31): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2169,89): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2172,31): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2172,68): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2174,81): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2176,40): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(2185,17): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2211,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2214,38): error TS2304: Cannot find name 'EventEmitter'.
dist/index.d.ts(2231,30): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2270,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2272,19): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2272,30): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2273,18): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2288,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2294,23): error TS2304: Cannot find name 'APIEmoji'.
dist/index.d.ts(2295,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2306,26): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2306,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2316,25): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2321,20): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2330,73): error TS2304: Cannot find name 'RESTPostAPIApplicationCommandsJSONBody'.
dist/index.d.ts(2335,55): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2343,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2344,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2346,69): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2347,65): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2349,102): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2350,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2351,12): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2353,65): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2354,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2355,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2355,82): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2355,93): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2356,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2356,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2357,68): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2357,88): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2357,99): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2358,73): error TS2304: Cannot find name 'APIApplicationCommand'.
dist/index.d.ts(2366,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2374,46): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2374,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2387,14): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2387,25): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2388,35): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2388,58): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2389,107): error TS2304: Cannot find name 'APIApplicationCommandPermission'.
dist/index.d.ts(2392,86): error TS2304: Cannot find name 'APIApplicationCommandPermission'.
dist/index.d.ts(2394,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2398,52): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2400,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2409,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2410,75): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2410,86): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2411,92): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2411,103): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2412,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2412,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2418,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2432,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2433,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2433,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2434,65): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2434,76): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2444,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2445,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2445,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2450,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2454,71): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2454,82): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2455,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2455,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2456,74): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2456,85): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2458,50): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2461,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2462,54): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2462,65): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2464,56): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2471,87): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2476,55): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2476,66): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2477,83): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2478,58): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2478,69): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2484,61): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2484,72): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2487,53): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2490,90): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2492,52): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2492,63): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2500,55): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2503,64): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2507,26): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2507,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2513,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2516,41): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(2519,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2520,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2520,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2520,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2523,58): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2533,71): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2533,82): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2534,48): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2534,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2535,74): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2535,85): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2537,52): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2540,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2540,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2544,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2545,92): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2545,103): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2546,47): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2546,58): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2551,64): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2553,58): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2553,69): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2559,53): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2562,53): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2567,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2570,61): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2570,72): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2573,49): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2580,19): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2581,68): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2581,79): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2589,58): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2597,70): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2608,57): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2611,71): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2614,41): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2614,52): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2615,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2615,65): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2617,49): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2619,28): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2626,55): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2637,17): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2642,57): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2642,68): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2643,23): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2643,34): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2643,125): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2643,136): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2651,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2653,45): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2653,82): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2654,137): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2655,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2655,106): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2658,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2658,85): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2660,99): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(2682,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2682,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2706,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2711,22): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(2722,22): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(2724,29): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(2736,29): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(2802,22): error TS2304: Cannot find name 'LocalizationMap'.
dist/index.d.ts(2808,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2816,65): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2819,7): error TS2304: Cannot find name 'APIAuditLogChange'.
dist/index.d.ts(2820,8): error TS2304: Cannot find name 'APIAuditLogChange'.
dist/index.d.ts(2821,8): error TS2304: Cannot find name 'APIAuditLogChange'.
dist/index.d.ts(2929,189): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2931,49): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2931,60): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2953,58): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(2953,69): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2960,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2961,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2962,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2964,35): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2966,40): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2971,70): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2972,46): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(2980,13): error TS2304: Cannot find name 'Response'.
dist/index.d.ts(3070,12): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3070,23): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3104,14): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3104,34): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3110,13): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3110,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3151,12): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3151,23): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3158,15): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3158,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3159,15): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3159,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3196,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3245,26): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3314,49): error TS2304: Cannot find name 'APIInteractionDataResolvedGuildMember'.
dist/index.d.ts(3315,56): error TS2304: Cannot find name 'APIInteractionDataResolvedChannel'.
dist/index.d.ts(3316,40): error TS2304: Cannot find name 'APIRole'.
dist/index.d.ts(3321,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3321,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3322,12): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3322,23): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3322,72): error TS2304: Cannot find name 'APIInteractionDataResolvedGuildMember'.
dist/index.d.ts(3323,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3323,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3323,63): error TS2304: Cannot find name 'APIRole'.
dist/index.d.ts(3324,13): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3324,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3324,72): error TS2304: Cannot find name 'APIInteractionDataResolvedChannel'.
dist/index.d.ts(3325,13): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3325,24): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3325,69): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(3326,16): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3326,27): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3340,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3341,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3372,31): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3381,12): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3382,11): error TS2304: Cannot find name 'LocaleString'.
dist/index.d.ts(3401,11): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3401,22): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3409,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3410,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3446,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3453,33): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(3457,77): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3459,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3715,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3721,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3727,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3733,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3735,14): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3739,8): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3741,14): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3747,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3751,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3755,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3759,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3763,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3767,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3771,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3774,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3777,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3786,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3790,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3794,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3802,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3817,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3830,17): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3838,20): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3867,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3867,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3872,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3872,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3886,10): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3886,21): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3893,111): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3911,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3938,261): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3938,272): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3941,5): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3941,16): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3941,60): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(3941,71): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3943,45): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3947,25): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3952,63): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(3955,32): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(3957,17): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(3960,15): error TS2304: Cannot find name 'AgentOptions'.
dist/index.d.ts(3985,46): error TS2304: Cannot find name 'APIMessage'.
dist/index.d.ts(4008,120): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4026,49): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4030,114): error TS2304: Cannot find name 'APIMessageActionRowComponent'.
dist/index.d.ts(4033,108): error TS2304: Cannot find name 'APIModalActionRowComponent'.
dist/index.d.ts(4072,49): error TS2304: Cannot find name 'APIEmbed'.
dist/index.d.ts(4073,44): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(4143,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4156,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4157,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4165,49): error TS2304: Cannot find name 'APIEmbed'.
dist/index.d.ts(4168,44): error TS2304: Cannot find name 'Stream'.
dist/index.d.ts(4174,59): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4174,84): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4174,113): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4174,144): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4176,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4177,11): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4178,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4180,43): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4192,9): error TS2304: Cannot find name 'APIPartialEmoji'.
dist/index.d.ts(4252,62): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4254,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4255,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4269,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4284,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4290,7): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4339,47): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4344,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4346,10): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4347,18): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4367,55): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4376,43): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4380,53): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4386,74): error TS2304: Cannot find name 'Collection'.
dist/index.d.ts(4399,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4403,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4407,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4416,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4420,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4425,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4429,12): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4433,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4437,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4441,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4445,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4450,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4454,3): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4486,15): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4497,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4498,42): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4500,55): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4519,32): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4520,37): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4527,38): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4530,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4545,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4550,13): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4567,6): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4573,54): error TS2304: Cannot find name 'Snowflake'.
dist/index.d.ts(4591,28): error TS2304: Cannot find name 'GatewayVoiceServerUpdateDispatchData'.
dist/index.d.ts(4592,27): error TS2304: Cannot find name 'GatewayVoiceStateUpdateDispatchData'.

Error: Compiled with errors

Sanity Checks:

  • Dependencies Installed in both folders

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sasial-devcommented, Jun 3, 2022
1reaction
timocovcommented, Apr 19, 2022

@sasial-dev thanks! As I can see from your repro, it doesn’t have necessary deps installed to work. For example, @types/ws and discord-api-types aren’t installed. The problem is that skipLibCheck compiler option is disabled in @tsconfig/node16 so you don’t see this issue while compiling the code. Just simply add "compilerOptions": { "skipLibCheck": false } to your tsconfig.json and you’ll see the following issues while compiling your code:

$ npm run build

> typings@1.0.0 build
> dts-bundle-generator -o dist/index.d.ts index.d.ts

Compiling input files...
discord.js/typings/index.d.ts(21,8): error TS2307: Cannot find module '@discordjs/builders' or its corresponding type declarations.
discord.js/typings/index.d.ts(22,28): error TS2307: Cannot find module '@discordjs/collection' or its corresponding type declarations.
discord.js/typings/index.d.ts(57,8): error TS2307: Cannot find module 'discord-api-types/v9' or its corresponding type declarations.
discord.js/typings/index.d.ts(58,30): error TS2307: Cannot find module 'node:child_process' or its corresponding type declarations.
discord.js/typings/index.d.ts(59,30): error TS2307: Cannot find module 'node:events' or its corresponding type declarations.
discord.js/typings/index.d.ts(60,30): error TS2307: Cannot find module 'node:https' or its corresponding type declarations.
discord.js/typings/index.d.ts(61,26): error TS2307: Cannot find module 'node-fetch' or its corresponding type declarations.
discord.js/typings/index.d.ts(62,24): error TS2307: Cannot find module 'node:stream' or its corresponding type declarations.
discord.js/typings/index.d.ts(63,37): error TS2307: Cannot find module 'node:worker_threads' or its corresponding type declarations.
discord.js/typings/index.d.ts(64,28): error TS2307: Cannot find module 'ws' or its corresponding type declarations.
discord.js/typings/index.d.ts(495,19): error TS2416: Property 'component' in type 'ButtonInteraction<Cached>' is not assignable to the same property in base type 'MessageComponentInteraction<Cached>'.
  Type 'CacheTypeReducer<Cached, MessageButton, APIButtonComponent, any, any>' is not assignable to type 'CacheTypeReducer<Cached, MessageActionRowComponent, never, MessageActionRowComponent, MessageActionRowComponent>'.
    Type 'APIButtonComponent' is not assignable to type 'never'.
discord.js/typings/index.d.ts(692,28): error TS2307: Cannot find module '@discordjs/collection' or its corresponding type declarations.
discord.js/typings/index.d.ts(702,21): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(703,25): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(878,75): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/index.d.ts(879,83): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/index.d.ts(1489,20): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(2108,19): error TS2416: Property 'component' in type 'SelectMenuInteraction<Cached>' is not assignable to the same property in base type 'MessageComponentInteraction<Cached>'.
  Type 'CacheTypeReducer<Cached, MessageSelectMenu, APISelectMenuComponent, any, any>' is not assignable to type 'CacheTypeReducer<Cached, MessageActionRowComponent, never, MessageActionRowComponent, MessageActionRowComponent>'.
    Type 'APISelectMenuComponent' is not assignable to type 'never'.
discord.js/typings/index.d.ts(2336,40): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(2786,95): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(2788,25): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(2791,25): error TS2503: Cannot find namespace 'NodeJS'.
discord.js/typings/index.d.ts(3987,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/index.d.ts(4007,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/index.d.ts(5067,24): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/index.d.ts(5069,9): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
discord.js/typings/rawDataTypes.d.ts(83,8): error TS2307: Cannot find module 'discord-api-types/v9' or its corresponding type declarations.

Error: Compiled with errors

This is a bad practice to disable skipLibCheck and rely on any type everywhere in node_modules IMO and I have no idea why the default configs in tsconfig repo do this for everyone.

You can easily fix them all by running npm i in discord.js submodule (what I believe you should do if you work with submodules like that):

cd discord.js
npm install

After that almost everything is working fine apart the following error:

$ npm run build

> typings@1.0.0 build
> dts-bundle-generator -o dist/index.d.ts index.d.ts

Compiling input files...
Processing index.d.ts
Writing index.d.ts -> dist/index.d.ts
Checking generated files...
Compiler option "skipLibCheck" is disabled to properly check generated output
dist/index.d.ts(292,1): error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

Error: Compiled with errors

I think this is something I can fix in the tool though. I’ll create a separate issue for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pnpm recursive not picking the dependent package #2162
I am a bit new to pnpm and got a project I am working on using pnpm. I am running the above command...
Read more >
c++ recursive class dependencies - Stack Overflow
I'm trying to make something similar to std::Map. I have two classes, NameValue which takes a name and a Value. The class Value...
Read more >
Recursive Optional Dependencies in Python - Hynek Schlawack
A package's optional dependencies (also known as extras) are named sets of dependencies that are installed by putting their names inside square ...
Read more >
Why can't Composer load repositories recursively?
Fetch the repositories of root package, then fetch the repositories of the first level dependencies, then fetch the repositories of their dependencies, etc, ......
Read more >
Status of recursive WORKSPACEs? - Google Groups
If you declare a dependency on buildtools before the load statement, it gets overridden by the declaration in go_repositories. If you declare ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found