Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140161

discord.js read reactions from old message

$
0
0

I started to write an discord bot with discord.js 11.5.

I don't want to use an event like client.on() because it takes days until everybody added his reactions and it's in a small channel which is always cleaned up with a few messages only.

I'm fetching older messages via fetchMessages() extract a specific message and want read the existing reactions from it. But I'm stuck with reading the reactions from the message.

Something like

message.reactions.array()

returns an empty array.

The docs mentions that it's not possible to listen to old message reactions, only in 12.x it is. but I don't use a listener, so I guess this limitation is not relevant in this case.

Is there any way to access reactions on old messages?

According to Discord docs it should be possible: https://discordapp.com/developers/docs/resources/channel#get-reactions


Viewing all articles
Browse latest Browse all 140161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>