Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

102
Visualizações
My bot isnt sending the embed that I have in my code

My bot isn't sending the embed that I coded. Is there any problems in the code that i have? Ive been working on this for like 2 days and its still giving me trouble.

Main.js:

const Discord = require('discord.js');

const client = new Discord.Client({ intents: ["GUILDS"] }, {partials: ["MESSAGE", "CHANNEL", "REACTION"]});

const prefix = '!';

const fs = require('fs');

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);
}

client.once('ready', () => {
    console.log('Bot is online');
});

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 === 'website'){
        client.commands.get('website').execute(message, args, Discord, client);
    }
});

Embed code:

module.exports = {
    name: 'website',
    description: "website",
    execute(message, args, Discord){
        const newEmbed = new Discord.MessageEmbed()
        .setColor('#ff0000')
        .setTitle('WEBSITE')
        .setURL('https://brodydurrett2.wixsite.com/teamban')

        message.channel.send(newEmbed);
    }
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda