Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
How to ban message author in discord.js

I'm making a function that has a 0.01 percent chance of banning you. But I can't seem to find a way to ban the author of the message. Here's what I have tried - message.author.ban()

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

message.author returns a user object - this is the information about an account not connected to the server it is in. To get the member object, you can do message.member - this gives you the member of the server and you can add roles, change nickname, kick, ban and more on this.
The correct way is message.member.ban().

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda