This commit is contained in:
March 7th 2022-05-03 14:26:19 +07:00
parent a7468df6de
commit c6316814eb
3 changed files with 2 additions and 10 deletions

View File

@ -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",

View File

@ -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() {

View File

@ -129,8 +129,6 @@ class Guild extends AnonymousGuild {
* @type {number} * @type {number}
*/ */
this.shardId = data.shardId; this.shardId = data.shardId;
this.disableDM = false;
} }
/** /**