fix
This commit is contained in:
parent
a7468df6de
commit
c6316814eb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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]",
|
||||
"main": "./src/index.js",
|
||||
"types": "./typings/index.d.ts",
|
||||
|
@ -149,13 +149,7 @@ class ClientUserSettingManager {
|
||||
this.guildMetadata = new Collection(data_);
|
||||
}
|
||||
if ('restricted_guilds' in data) {
|
||||
data.restricted_guilds.map(guildId => {
|
||||
const guild = this.client.guilds.cache.get(guildId);
|
||||
if (!guild) return false;
|
||||
guild.disableDM = true;
|
||||
this.disableDMfromServer.set(guildId, true);
|
||||
return true;
|
||||
});
|
||||
this.disableDMfromServer = new Collection(data.restricted_guilds.map(guildId => [guildId, true]));
|
||||
}
|
||||
}
|
||||
async fetch() {
|
||||
|
@ -129,8 +129,6 @@ class Guild extends AnonymousGuild {
|
||||
* @type {number}
|
||||
*/
|
||||
this.shardId = data.shardId;
|
||||
|
||||
this.disableDM = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user