Discord.js no autocomplete

in my ready.js file i created im not getting any autocomplete for client. i have the jsdocs for it, [email protected], Node: 16.16.0
const { Client, ActivityType } = require('discord.js');
const { MONGO_DATABASE, MONGO_PASSWORD, MONGO_USERNAME, MONGO_DATABASE_URI } = require('../../Structures/config');
const mongoose = require('mongoose');

module.exports = {
name: 'ready',
once: true,
/**
*
* @param {Client} client
* @returns
*/
async execute(client) {
const { user } = client;
console.log(`${client.user.tag} is online!`);
user.setActivity({ name: ' /get-help', type: ActivityType.Watching });

if (!MONGO_DATABASE_URI) return;
await mongoose.connect(MONGO_DATABASE_URI, {
user: MONGO_USERNAME,
pass: MONGO_PASSWORD,
dbName: MONGO_DATABASE,
connectTimeoutMS: 10000,
useNewUrlParser: true,
useUnifiedTopology: true
}).then(() => {
console.log('Database Connected');
}).catch((err) => {
console.log(err);
});
}
};
const { Client, ActivityType } = require('discord.js');
const { MONGO_DATABASE, MONGO_PASSWORD, MONGO_USERNAME, MONGO_DATABASE_URI } = require('../../Structures/config');
const mongoose = require('mongoose');

module.exports = {
name: 'ready',
once: true,
/**
*
* @param {Client} client
* @returns
*/
async execute(client) {
const { user } = client;
console.log(`${client.user.tag} is online!`);
user.setActivity({ name: ' /get-help', type: ActivityType.Watching });

if (!MONGO_DATABASE_URI) return;
await mongoose.connect(MONGO_DATABASE_URI, {
user: MONGO_USERNAME,
pass: MONGO_PASSWORD,
dbName: MONGO_DATABASE,
connectTimeoutMS: 10000,
useNewUrlParser: true,
useUnifiedTopology: true
}).then(() => {
console.log('Database Connected');
}).catch((err) => {
console.log(err);
});
}
};
i only get editor suggestions, is this VSCode or is it something with discord.js V14?
1 Reply
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Want results from more Discord servers?
Add your server