Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda