I have the client function in one file, and after the client receives the message, it sends the message to another function which is on another file(sub file). But there is no autocomplete or intellisense on sub file. Here is my code
//main file
const Discord = require('discord.js')
const client = new Discord.Client();
const subCmd = require('./subCmd.js')
client.on('message', (msg) => {
subCmd.exec(msg);
}
//subfile
module.exports = {
exec(msg){
//no intellisense for msg :(
}
}