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

159
Views
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 answers
Answer question

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 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!