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

148
Views
Only let users with a specific permission use kick slash command

I know how to make it so that only ME can use a slash command, that way if someone isn't me and tries to use my slash command it will be gray like :

grey slash command

client.application.commands.permissions.set([
  {
    id : cmd.id,
    permissions : [
      {
        type : 'USER',
        id : 'My id',
        permission : true
      }
    ]
  }
])

How to do the same thing for permissions ? How to do it so that only members with a specific role can use the command ?

about 4 years ago · Juan Pablo Isaza
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!