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

206
Visualizações
Accessing count reactions from a channel fetched, [navigate in map elements]

I'm trying to develop a bot to help my community. Let's say at a certain point of time I need to examine all messages sent in a channel, and "choose the best one". Let's say I will examine each message and give kind of "notation", then I want to return the name of the author and the notation I gave.

[Edit 1] Thanks to the community, I did advance in my quest ! I am now able to fetch the different messages!! And I geta map/Collection from the channel. I am now also able to get the content or author as it is some quite simple "properties" of the "object".

Where I am blocked is when I need to get the reactions, from what I see there is a ReactionManager, So I'm doing tryings&errors but without able to find my way in the structure... (see the partial structure I can watch attached)

To make it short, let's take a simplified case: is there any one who would get the right coding to :

  • get the property "count" on the let say reactions1 of a certain message where I have the ID from the structure? I suppose I need maybe two or three cascaded arrow functions ? I can't find a way to do them properly.

Any tips, help, idea would be so great ! enter image description here

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