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