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

195
Views
¿Puedes técnicamente agregar 'Botón' en 'Modal' como 'Discord.js'?

Haga referencia a este código: https://discordjs.guide/interactions/modals.html#building-and-responding-with-modals

intenta hacerlo :

 const modal = new Modal() .setCustomId('Vote') .setTitle('Vote TItle'); const favoriteColorInput = new TextInputComponent() .setCustomId('favoriteColorInput') .setLabel("Vote Title") .setStyle('SHORT'); const hobbiesInput = new TextInputComponent() .setCustomId('hobbiesInput') .setLabel("Value") .setStyle('SHORT'); const addButton = new MessageButton() .setCustomId('addButton') .setLabel('ADD') .setStyle('SUCCESS'); const firstActionRow = new MessageActionRow().addComponents(favoriteColorInput); const secondActionRow = new MessageActionRow().addComponents(hobbiesInput); const addButtonActionRow = new MessageActionRow().addComponents(addButton); modal.addComponents(firstActionRow, secondActionRow, addButtonActionRow); await interaction.showModal(modal);

predicción:

ingrese la descripción de la imagen aquí

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

0

En los modales, por ahora, solo tiene dos botones enviar y cancelar que están integrados en el modal, por lo que no puede agregarle más botones.

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!