Downloading v13 Error
I'm trying to download v13 in Shell, this is my code: const { Client, Intents, MessageEmbed } = require('discord.js');
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]
});
const prefix = '!';
// ... (rest of your code)
client.on('ready', () => {
console.log(
Logged in as ${client.user.tag}!
);
});
client.on('messageCreate', (message) => {
if (message.author.bot || !message.content.startsWith(prefix)) {
return; // Ignore messages from bots and messages without the prefix
}
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command === 'group') {
const embed = new MessageEmbed()
.setColor('#0a19f2')
.setTitle('Eternal Group')
.setDescription('Eternals Group Link Is: https://www.roblox.com/groups/33111778/Eternal-Regionz#!/about')
message.channel.send({ embeds: [embed] });
}
});
// Replace 'YOUR_BOT_TOKEN' with your actual bot token
client.login('mytoken');
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Bot is online.');
});
const listener = app.listen(process.env.PORT, () => {
console.log('Your app is listening on port ' + listener.address().port);
});
This is the error I'm gettingRoblox
Eternal Regionz
Eternal Regionz is a group on Roblox owned by pccpccool with 4 members. Void Falls Crew
5 Replies
- 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!
- ✅
Marked as resolved by OPthe error comes from npm, not your code, nor djs
and its quite clear too
so what do i do
anyhow, not djs related