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

219
Views
Error en javascript al crear un ds b0t
 if (button.id == 'AddVerifiedRole') { button.reply.send(`Verified!`, true) const role = button.guild.roles.cache.get(config.roleid) const member = button.clicker.member await member.roles.add(role) }{} })

Quiero hacer un sistema de verificación con un bot de discord. Si presiono Verificar algunas veces, el bot falla con este error:

 await member.roles.add(role) ^ TypeError: Cannot read properties of null (reading 'roles') at Client.<anonymous> (C:\bot\TestBot\index.js:28:20) at Client.emit (node:events:526:28) at WebSocketManager.<anonymous> (C:\bot\TestBot\node_modules\discord-buttons\src\index.js:35:16) at WebSocketManager.emit (node:events:526:28) at WebSocketShard.onMessage (C:\bot\TestBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:296:56) at WebSocket.onMessage (C:\bot\TestBot\node_modules\ws\lib\event-target.js:132:16) at WebSocket.emit (node:events:526:28) at Receiver.receiverOnMessage (C:\bot\TestBot\node_modules\ws\lib\websocket.js:970:20) at Receiver.emit (node:events:526:28) at Receiver.dataMessage (C:\bot\TestBot\node_modules\ws\lib\receiver.js:517:14) Can somebody help me?
about 4 years ago · Santiago Trujillo
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!