I code discord bot in VS Code. I liked it but sometimes its too hard becasuse autocomplete doesn’t work. I have main file and then folder with all commands.
In main file i have something like this:
bot.commands.get('help').execute(message)
in messageCreate
event.
Then i have in help.js:
module.exports = {
name: 'help',
description: 'bots commands',
execute(message){
code...
}
}
In help.js file autocomplete doesn’t work, because i think VS Code doesn’t know what it is.
I can it specify with @param (code below) but it’s quite complicated if I were to specify all these parameters. For example if i use buttons and collectors and much more.
/**
*
* @param {Message} message
*/
I downloaded Webstorm from Jetbrains and it can autocomplete even in files.
Is there any plugin for VS Code or how i can fix it?