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
Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

const channel = client.channels.cache.find(channel => channel.id === config.server.channelId)
let invite = channel.createInvite({maxAge: 0, maxUses: 0});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Specifically bots cannot create invites for users because each user (including bots) has their very own authorization token, so the only workaround here is by having a user token and calling an endpoint to create an invite, but sharing user tokens isn't very reliable and safe way, and this can be probably called for selfbotting (calling an endpoint with a user token directly, aka not in any of the apps).

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!