Recientemente me interesé en los bots de discord, así que comencé a codificar uno, sin embargo, ahora aproximadamente un día en que todo dejó de funcionar patear, prohibir, borrar todo lo que codifiqué no funciona, el bot de discord no preparará el suyo sin respuesta en la terminal una vez así que incluso si trato de ejecutarlo aquí está mi código
const mySecret = process.env[`TOKEN`] const Discord = require("discord.js"); const prefix = '!'; const fs = require('fs'); const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES", "GUILD_MEMBERS"], partials: ["MESSAGE", "CHANNEL", "REACTION"] }); client.commands = new Discord.Collection(); const commandFiles = fs.readdirSync('./commands/').filter(file => file.endsWith('.js')); for (const file of commandFiles) { const command = require(`./commands/${file}`); client.commands.set(command.name, command); } const welcome = require("./welcome"); client.on('ready', () => { console.log("Our Discord bot is online"); welcome(client); }); client.on('message', message => { if (!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase(); if (command === 'clear') { client.commands.get('clear').execute(message, args); } else if (command === 'kick') { client.commands.get('kick').execute(message, args); } else if (command === 'ban') { client.commands.get('ban').execute(message, args); } else if (command === 'mute') { client.commands.get('mute').execute(message, args); } else if (command === 'unmute') { client.commands.get('unmute').execute(message, args); } }); client.on("message", msg => { if (msg.content === "i love snick") { msg.reply("Me too!"); } }) client.login(process.env.TOKEN);