mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-04 01:50:08 +00:00
refactor(*): make typedefs for all options params (#5785)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
@@ -24,11 +24,16 @@ class ReactionUserManager extends BaseManager {
|
||||
* @name ReactionUserManager#cache
|
||||
*/
|
||||
|
||||
/**
|
||||
* Options used to fetch users who gave a reaction.
|
||||
* @typedef {Object} FetchReactionUsersOptions
|
||||
* @property {number} [limit=100] The maximum amount of users to fetch, defaults to `100`
|
||||
* @property {Snowflake} [after] Limit fetching users to those with an id greater than the supplied id
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fetches all the users that gave this reaction. Resolves with a collection of users, mapped by their IDs.
|
||||
* @param {Object} [options] Options for fetching the users
|
||||
* @param {number} [options.limit=100] The maximum amount of users to fetch, defaults to 100
|
||||
* @param {Snowflake} [options.after] Limit fetching users to those with an id greater than the supplied id
|
||||
* @param {FetchReactionUsersOptions} [options] Options for fetching the users
|
||||
* @returns {Promise<Collection<Snowflake, User>>}
|
||||
*/
|
||||
async fetch({ limit = 100, after } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user