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

107
Visualizações
Formatting Discord NodeJS

I've been coding with Python for Discord but I wanted to make the switch to JS as there is more. I'm having trouble formatting a line of code, I've downloaded this music bot to test and be come familiar with JS. It was sending an embed but I want text. Here is the line of code:

if (this.textChannel) this.textChannel.send(f"Playing 🎶 Now playing ${this.current.info.title} - Right Now!");

I know in Python it would be something like: await ctx.send(f"Playing 🎶 Now playing ${this.current.info.title} - Right Now!").

What is the equivalent to f?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

In Javascript, use backticks (`) for a template string

let a = 123;
console.log(`a is ${a}`);

If you need to write backticks (for markdown code block) within a template string, you can escape them with backslashes.

let code = "I am some code";
console.log(`\`\`\`${code}\`\`\``);

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