John
John
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
isnt there like a website showing all the intents i forgot wht the website was
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
this is the line causing it
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
const client = new Discord.Client();
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
intents are so confusing just messes with me mind
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
now im missing client intents 🥲
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
oh thanks its fixed that now
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
which line
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
it goes through fun then avatar
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
oh is it cause
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
wdym
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
throw err;
^

Error: Cannot find module '../commands/fun/avatar.js'
Require stack:
throw err;
^

Error: Cannot find module '../commands/fun/avatar.js'
Require stack:
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
Issue is
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack:
let chx = db.get(`welchannel_${member.guild.id}`);

if (chx === null) {
return;
}

let wembed = new Discord.MessageEmbed()
.setAuthor(member.user.username, member.user.avatarURL())
.setColor('RANDOM')
.setThumbnail(member.user.avatarURL())
.setDescription(`${msg}`)
.setTimestamp()
.setFooter(`ID: ${member.user.id}`);


bot.channels.cache.get(chx).send(wembed)

})




bot.once('ready', () => {
readdirSync("./commands/").map((dir) => {
// Get all the sub folders
// eslint-disable-next-line no-unused-vars
const commands = readdirSync(`./commands/${dir}/`).map((cmd) => {
// Get the command
const pull = require(`../commands/${dir}/${cmd}`);
// Add the command to bot.commands
bot.commands.set(pull.name, pull);
table.addRow(cmd, "✓");
// Load the aliases and add it to bot.aliases
if (pull.aliases && Array.isArray(pull.aliases)) {
pull.aliases.forEach((alias) =>
bot.aliases.set(alias, pull.name),
);
}
});
});
console.log(table.toString());

console.log('Ready!');
bot.user.setActivity(`.help | discord.gg/knrqhnD`);
});

bot.login(token);
let chx = db.get(`welchannel_${member.guild.id}`);

if (chx === null) {
return;
}

let wembed = new Discord.MessageEmbed()
.setAuthor(member.user.username, member.user.avatarURL())
.setColor('RANDOM')
.setThumbnail(member.user.avatarURL())
.setDescription(`${msg}`)
.setTimestamp()
.setFooter(`ID: ${member.user.id}`);


bot.channels.cache.get(chx).send(wembed)

})




bot.once('ready', () => {
readdirSync("./commands/").map((dir) => {
// Get all the sub folders
// eslint-disable-next-line no-unused-vars
const commands = readdirSync(`./commands/${dir}/`).map((cmd) => {
// Get the command
const pull = require(`../commands/${dir}/${cmd}`);
// Add the command to bot.commands
bot.commands.set(pull.name, pull);
table.addRow(cmd, "✓");
// Load the aliases and add it to bot.aliases
if (pull.aliases && Array.isArray(pull.aliases)) {
pull.aliases.forEach((alias) =>
bot.aliases.set(alias, pull.name),
);
}
});
});
console.log(table.toString());

console.log('Ready!');
bot.user.setActivity(`.help | discord.gg/knrqhnD`);
});

bot.login(token);
23 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
Commands not working
nvm ive done it
10 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
Commands not working
@Jô 🌈 🦄 also question how do I update the version of discord js cause I did npm I discordjs in the console but it didn’t update it I believe
10 replies
DIAdiscord.js - Imagine a boo! 👻
Created by John on 6/9/2023 in #djs-questions
Commands not working
Thanks for the help I’ll start doing the transition now
10 replies