error

I have such a problem, the channel id in config.json is correct
6 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Syjalo
Syjalo11mo ago
Show your code
Zanoriks
Zanoriks11mo ago
const config = require("../config/config.json");

module.exports = async (Discord, client) => {
try {
let guild = client.guilds.cache.get("823840064773029898");
await guild.members.fetch({force: true})
client.logger.clientReady(client);
client.guilds.cache.size > 4 ? console.log("test!") : "";
guild.channels.cache.get(config.logi.mainChannel).threads.cache.get(config.logi.status).send({embeds: [new Discord.EmbedBuilder().setColor("Green").setDescription(" bot on!")]})
} catch (error) {
console.log(error);
}
};
const config = require("../config/config.json");

module.exports = async (Discord, client) => {
try {
let guild = client.guilds.cache.get("823840064773029898");
await guild.members.fetch({force: true})
client.logger.clientReady(client);
client.guilds.cache.size > 4 ? console.log("test!") : "";
guild.channels.cache.get(config.logi.mainChannel).threads.cache.get(config.logi.status).send({embeds: [new Discord.EmbedBuilder().setColor("Green").setDescription(" bot on!")]})
} catch (error) {
console.log(error);
}
};
treble/luna
treble/luna11mo ago
do you have the guilds intent
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Zanoriks
Zanoriks11mo ago
yes
Want results from more Discord servers?
Add your server
More Posts