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

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

View File

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