fix(typings): ReactionUserStore#fetch returns a Collection

fixes #2895
This commit is contained in:
Lewdcario
2018-10-13 20:09:19 -05:00
parent 73b9b0e62b
commit 9cf50d05f2
2 changed files with 2 additions and 2 deletions

View File

@@ -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<ReactionUserStore<Snowflake, User>>}
* @returns {Promise<Collection<Snowflake, User>>}
*/
async fetch({ limit = 100, after, before } = {}) {
const message = this.reaction.message;

2
typings/index.d.ts vendored
View File

@@ -1372,7 +1372,7 @@ declare module 'discord.js' {
export class ReactionUserStore extends DataStore<Snowflake, User, typeof User, UserResolvable> {
constructor(client: Client, iterable: Iterable<any> | undefined, reaction: MessageReaction);
public fetch(options?: { limit?: number, after?: Snowflake, before?: Snowflake }): Promise<this>;
public fetch(options?: { limit?: number, after?: Snowflake, before?: Snowflake }): Promise<Collection<Snowflake, User>>;
public remove(user?: UserResolvable): Promise<MessageReaction>;
}