Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

104
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda