Add files via upload
This commit is contained in:
		@@ -1,14 +1,17 @@
 | 
				
			|||||||
'use strict';
 | 
					'use strict';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const CachedManager = require('./CachedManager');
 | 
				
			||||||
const { default: Collection } = require('@discordjs/collection');
 | 
					const { default: Collection } = require('@discordjs/collection');
 | 
				
			||||||
const { Error, TypeError } = require('../errors/DJSError');
 | 
					const { Error, TypeError } = require('../errors/DJSError');
 | 
				
			||||||
const { remove } = require('lodash');
 | 
					const { remove } = require('lodash');
 | 
				
			||||||
const { localeObject, DMScanLevel, stickerAnimationMode } = require('../util/Constants')
 | 
					const { localeObject, DMScanLevel, stickerAnimationMode } = require('../util/Constants')
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Manages API methods for users.
 | 
					 * Manages API methods for users and stores their cache.
 | 
				
			||||||
 | 
					 * @extends {CachedManager}
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
class ClientUserSettingManager {
 | 
					class ClientUserSettingManager extends CachedManager {
 | 
				
			||||||
	constructor(client, iterable) {
 | 
						constructor(client, iterable) {
 | 
				
			||||||
		this.client = client;
 | 
							super(client);
 | 
				
			||||||
		// Raw data
 | 
							// Raw data
 | 
				
			||||||
		this.rawSetting = {};
 | 
							this.rawSetting = {};
 | 
				
			||||||
		// Language
 | 
							// Language
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,14 +3,14 @@
 | 
				
			|||||||
const { Collection } = require('@discordjs/collection');
 | 
					const { Collection } = require('@discordjs/collection');
 | 
				
			||||||
const CachedManager = require('./CachedManager');
 | 
					const CachedManager = require('./CachedManager');
 | 
				
			||||||
const { Error } = require('../errors');
 | 
					const { Error } = require('../errors');
 | 
				
			||||||
const { User } = require('discord.js-selfbot-v13');
 | 
					const Discord = require("discord.js-selfbot-v13")
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Manages API methods for users who reacted to a reaction and stores their cache.
 | 
					 * Manages API methods for users who reacted to a reaction and stores their cache.
 | 
				
			||||||
 * @extends {CachedManager}
 | 
					 * @extends {CachedManager}
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
class ReactionUserManager extends CachedManager {
 | 
					class ReactionUserManager extends CachedManager {
 | 
				
			||||||
  constructor(reaction, iterable) {
 | 
					  constructor(reaction, iterable) {
 | 
				
			||||||
    super(reaction.client, User, iterable);
 | 
					    super(reaction.client, Discord.User, iterable);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * The reaction that this manager belongs to
 | 
					     * The reaction that this manager belongs to
 | 
				
			||||||
@@ -21,7 +21,7 @@ class ReactionUserManager extends CachedManager {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * The cache of this manager
 | 
					   * The cache of this manager
 | 
				
			||||||
   * @type {Collection<Snowflake, User>}
 | 
					   * @type {Collection<Snowflake, Discord.User>}
 | 
				
			||||||
   * @name ReactionUserManager#cache
 | 
					   * @name ReactionUserManager#cache
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -35,7 +35,7 @@ class ReactionUserManager extends CachedManager {
 | 
				
			|||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * Fetches all the users that gave this reaction. Resolves with a collection of users, mapped by their ids.
 | 
					   * Fetches all the users that gave this reaction. Resolves with a collection of users, mapped by their ids.
 | 
				
			||||||
   * @param {FetchReactionUsersOptions} [options] Options for fetching the users
 | 
					   * @param {FetchReactionUsersOptions} [options] Options for fetching the users
 | 
				
			||||||
   * @returns {Promise<Collection<Snowflake, User>>}
 | 
					   * @returns {Promise<Collection<Snowflake, Discord.User>>}
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  async fetch({ limit = 100, after } = {}) {
 | 
					  async fetch({ limit = 100, after } = {}) {
 | 
				
			||||||
    const message = this.reaction.message;
 | 
					    const message = this.reaction.message;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user