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

176
Views
Discord Intents code for get all events from gateway

i'm trying to connect to Discord gateway, but i didn't receive all events (like MESSAGE_REACTION_ADD, MESSAGE_REACTION_REMOVE, all threads events and more) because I don't know the intent code for get all events.

Payload that I actually send to Discord:

    let payload = {
      op: 2,
      d: {
        token: "bot token",
        intents: 513,
        properties: {
          $os: "linux",
          $browser: "chrome",
          $device: "chrome",
        },
      },
    };

My current intent code doesn't works for all events.
What code I need to insert for get all events?
Discord documentation isn't very clean about this.
Thanks in advice and sorry for bad english!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you want every intent you can use 32767, to find what the number you need to add together all the intents you need. Each number is listen in the documentation here. So if I wanted to have GUILDS, GUILD_MESSAGES, GUILD_MESSAGE_REACTIONS, and GUILD_MESSAGE_TYPING and I would just add together 1 << 0, 1 << 9, 1 << 10, and 1 << 11 which is 3585.

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!