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

383
Views
Discord muestra @deleted-role mientras el rol aún está disponible

Recibí este problema cuando el bot de discordia que escribo con discord.js muestra un rol como @deleted-role . El rol en sí todavía está disponible pero el bot dice rol eliminado. Traté de probarlo con otro rol mismo aquí están las imágenes del y el código:

 if (message.content.includes("test")) return message.channel.send("<@&" + 855179067388461076 + "> why is that ");

El resultado

ingrese la descripción de la imagen aquí

El papel

ingrese la descripción de la imagen aquí

¿Pueden ayudarme con esto?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El problema es que usas un número entero ( 855179067388461076 ) como un copo de nieve. Debería ser una cadena. Como este número es superior a 53 bits ( MAX_SAFE_INTEGER ), JavaScript tiene dificultades para interpretarlo. Solo puede representar con seguridad números enteros entre -(2 53 - 1) y 2 53 - 1.

Entero máximo seguro 9007199254740992
tu entero 855179067388461076
Su número entero se convierte en 855179067388461000

Y no hay rol con el ID de 855179067388461000 . Para resolver esto, asegúrese de usar solo cadenas como copos de nieve:

 message.channel.send("<@&" + "855179067388461076" + "> why is that") // OR const roleId = "855179067388461076" message.channel.send("<@&" + roleId + "> why is that") 

 console.log('<@&' + 855179067388461076 + '> why is that ') // => <@&855179067388461000> why is that

over 4 years ago · Santiago Trujillo 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!