Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
No puedo descifrar los botones discord.js v13

Simplemente no puedo entender cómo enviar una interacción de botón con un mensaje en Discord.js v13 en v12, solo usa los botones de discordia, pero aquí está integrado de alguna manera y no puedo entenderlo.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Discord.js tiene una excelente documentación y puede encontrar más información sobre los botones en la sección Botones . Está bien documentado y también hay algunos buenos ejemplos.

about 4 years ago · Juan Pablo Isaza Report

0

const { MessageActionRow, MessageButton } = require('discord.js'); client.on('interactionCreate', async interaction => { if (!interaction.isCommand()) return; if (interaction.commandName === 'ping') { const row = new MessageActionRow() .addComponents( new MessageButton() .setCustomId('primary') .setLabel('Primary') .setStyle('PRIMARY'), ); await interaction.reply({ content: 'Pong!', components: [row] }); } });

Para el botón de redireccionamiento externo, debe usar .setLabel('LINK') en lugar de .setLabel('Primary') y luego eliminar .setCustomId('primary'). Añadir .setURL('URL')

Para más haga clic aquí

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!