fix
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "discord.js-selfbot-v13",
 | 
					  "name": "discord.js-selfbot-v13",
 | 
				
			||||||
  "version": "1.4.21",
 | 
					  "version": "1.4.22",
 | 
				
			||||||
  "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
 | 
					  "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
 | 
				
			||||||
  "main": "./src/index.js",
 | 
					  "main": "./src/index.js",
 | 
				
			||||||
  "types": "./typings/index.d.ts",
 | 
					  "types": "./typings/index.d.ts",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -149,13 +149,7 @@ class ClientUserSettingManager {
 | 
				
			|||||||
      this.guildMetadata = new Collection(data_);
 | 
					      this.guildMetadata = new Collection(data_);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if ('restricted_guilds' in data) {
 | 
					    if ('restricted_guilds' in data) {
 | 
				
			||||||
      data.restricted_guilds.map(guildId => {
 | 
					      this.disableDMfromServer = new Collection(data.restricted_guilds.map(guildId => [guildId, true]));
 | 
				
			||||||
        const guild = this.client.guilds.cache.get(guildId);
 | 
					 | 
				
			||||||
        if (!guild) return false;
 | 
					 | 
				
			||||||
        guild.disableDM = true;
 | 
					 | 
				
			||||||
        this.disableDMfromServer.set(guildId, true);
 | 
					 | 
				
			||||||
        return true;
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  async fetch() {
 | 
					  async fetch() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -129,8 +129,6 @@ class Guild extends AnonymousGuild {
 | 
				
			|||||||
     * @type {number}
 | 
					     * @type {number}
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    this.shardId = data.shardId;
 | 
					    this.shardId = data.shardId;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    this.disableDM = false;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user