From 9cf50d05f2196fd01e5376642c0ab083e87512f7 Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Sat, 13 Oct 2018 20:09:19 -0500 Subject: [PATCH] fix(typings): ReactionUserStore#fetch returns a Collection fixes #2895 --- src/stores/ReactionUserStore.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/ReactionUserStore.js b/src/stores/ReactionUserStore.js index dace1e94c..1b0275795 100644 --- a/src/stores/ReactionUserStore.js +++ b/src/stores/ReactionUserStore.js @@ -18,7 +18,7 @@ class ReactionUserStore extends DataStore { * @param {number} [options.limit=100] The maximum amount of users to fetch, defaults to 100 * @param {Snowflake} [options.before] Limit fetching users to those with an id lower than the supplied id * @param {Snowflake} [options.after] Limit fetching users to those with an id greater than the supplied id - * @returns {Promise>} + * @returns {Promise>} */ async fetch({ limit = 100, after, before } = {}) { const message = this.reaction.message; diff --git a/typings/index.d.ts b/typings/index.d.ts index 6491a4703..f431c3d19 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1372,7 +1372,7 @@ declare module 'discord.js' { export class ReactionUserStore extends DataStore { constructor(client: Client, iterable: Iterable | undefined, reaction: MessageReaction); - public fetch(options?: { limit?: number, after?: Snowflake, before?: Snowflake }): Promise; + public fetch(options?: { limit?: number, after?: Snowflake, before?: Snowflake }): Promise>; public remove(user?: UserResolvable): Promise; }