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

136
Views
Paquete de botones Discord.js

Necesito poca ayuda. Quiero configurar mis botones para que sean funcionales. estoy usando este paquete discord-buttons
Entonces, creé dos botones: para limpiar el canal y bloquear el canal.
No sé cómo configurarlos para que funcionen.
Hay código.

 let opcijaKanala = new MessageButton() .setStyle("green") .setLabel("Otkljucaj kanal") .setID("unlockChannel")

¿Tal vez necesito algo como esto?

 client.on('buttonClicked' //... )
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El evento para clics de botón es interactionCreate

Algo un poco como esto puede funcionar

 client.on("interactionCreate", (ctx) => { if(!ctx.isButton()) return // filter out commands and non-buttons if(ctx.customId === "foobar") { // do something amazing } })
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!