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 getting
Roblox
Eternal Regionz
Eternal Regionz is a group on Roblox owned by pccpccool with 4 members. Void Falls Crew
No description
5 Replies
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
treble/luna
treble/luna15mo ago
the error comes from npm, not your code, nor djs and its quite clear too
crimsonn
crimsonnOP15mo ago
so what do i do
treble/luna
treble/luna15mo ago
anyhow, not djs related
Want results from more Discord servers?
Add your server