Closed kevinlul closed 3 weeks ago
Sample TypeScript compiler error:
Type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord.js/node_modules/discord-api-types/rest/v10/interactions").RESTPostAPIApplicationCommandsJSONBody' is not assignable to type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord-api-types/rest/v10/interactions").RESTPostAPIApplicationCommandsJSONBody'.
Type 'RESTPostAPIChatInputApplicationCommandsJSONBody' is not assignable to type 'RESTPostAPIApplicationCommandsJSONBody'.
Type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord.js/node_modules/discord-api-types/rest/v10/interactions").RESTPostAPIChatInputApplicationCommandsJSONBody' is not assignable to type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord-api-types/rest/v10/interactions").RESTPostAPIChatInputApplicationCommandsJSONBody'.
Types of property 'type' are incompatible.
Type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord.js/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands").ApplicationCommandType.ChatInput | undefined' is not assignable to type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands").ApplicationCommandType.ChatInput | undefined'.
Type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord.js/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands").ApplicationCommandType.ChatInput' is not assignable to type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands").ApplicationCommandType.ChatInput'.
Property 'PrimaryEntryPoint' is missing in type 'import("/home/runner/work/bastion-bot/bastion-bot/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands").ApplicationCommandType'.
Should be resolved by #10524 already. Waiting for a release cycle.
Which package is this bug report for?
ws
Issue description
RESTPostAPIApplicationCommandsJSONBody
between the import fromdiscord.js
and the one fromdiscord-api-types/v10
because multiple versions of discord-api-types are in useCode sample
No response
Versions
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response