mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
@@ -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
2
typings/index.d.ts
vendored
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user