Discord.js: MessageReaction fetchUsers max limit, what if there are over 100 users?

Created on 2 Jan 2018  路  3Comments  路  Source: discordjs/discord.js

MessageReaction has two ways of getting users who added to the reaction ...

reaction.users

which is a collection, and

reaction.fetchUsers(maxUsers)

which returns a promise. fetchUsers() has a maximum limit of 100 users - how do we deal with reactions that have over 100 users on it?

Also, the .users collection isn't very reliable, I've noticed that sometimes it returns an empty collection even if there are definitely users visible on the dischord app.

invalid

All 3 comments

This is not an issue with the library. Please move to the discord server.

Fetching more than 100 users is not supported in current stable (11.2.1).
The master branch (12.0.0-dev), which has breaking changes, however is supporting that. (Docs)

I supposes it's possible to backport that for 11.3.0 in a not breaking manner.

@SpaceEEC Thanks for the info, that's good to know. I don't need this functionality immediately, I can wait it out until 12 is released, just glad to know it's being looked at. Closing ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peachyfawx picture peachyfawx  路  3Comments

smchase picture smchase  路  3Comments

kvn1351 picture kvn1351  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments