underscore
underscore5w ago

Discord JS Invalid imports with Deno

Hi, I'm trying to create a discord bot using DiscordJS and Deno. When I import these modules I get errors in the IDE linter but when I run the code, it perfectly works. Following are the error messages shown by the IDE linter:
Module '"discord.js"' declares 'REST' locally, but it is exported as 'Collection'. deno-ts(2460)

Module '"discord.js"' has no exported member 'Routes' deno-ts(2305)

Module '"discord.js"' declares 'GatewayIntentBits' locally, but it is exported as 'Collection'. deno-ts(2460)

Module '"discord.js"' has no exported member 'SlashCommandBuilder'.deno-ts(2305)
Module '"discord.js"' declares 'REST' locally, but it is exported as 'Collection'. deno-ts(2460)

Module '"discord.js"' has no exported member 'Routes' deno-ts(2305)

Module '"discord.js"' declares 'GatewayIntentBits' locally, but it is exported as 'Collection'. deno-ts(2460)

Module '"discord.js"' has no exported member 'SlashCommandBuilder'.deno-ts(2305)
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?