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

187
Visualizações
Discord.JS For Every Request Reply With a New Code

I am trying to make something work. When they do [!btc] it sends an embed where it shows a address code from blockchain.com

Is it possible for every new request to send a new address code?

My current code:

case "btc":
          const btc = new Discord.MessageEmbed()
            .setColor('#003087')
            .setTitle('Payment Method: Bitcoin! <:btc:878247766067908610>')
            .setDescription("Bitcoin Adress: **code**")
            .setFooter("Created and Developed by ❤️")
          //message.channel.send()
          setTimeout(() => {
            message.channel.send(btc);
          }, 5500);
          message.delete();
          message.channel.send(`<a:loading:885542082234629809> Please wait..`)
            .then((msg) => {
              setTimeout(function () {
                msg.edit(`${message.author.toString()}.`);
              }, 5000)
            });
          break;
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think you want a dynamic value, if I understand your question right, for code. If this is the case, this goes in your embed description, and you can change it to take a variable. you have right now:

.setDescription("Bitcoin Adress: **code**")

get your variable, load it with what you want, and call it newCode. Change your string to use variables with text:

.setDescription(`Bitcoin Adress: ***${newCode}***`)

keep the "*" if you want them, I preserved, in case that's the formatting you want. also note the change in quotes from double to `.

about 4 years ago · Juan Pablo Isaza Relatório
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