mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fixed a bunch of ClientUserGuildSettings stuff and its docs (#1758)
This commit is contained in:
@@ -88,9 +88,7 @@ class ClientUser extends User {
|
||||
this.guildSettings = new Collection();
|
||||
if (data.user_guild_settings) {
|
||||
for (const settings of data.user_guild_settings) {
|
||||
settings.client = this.client;
|
||||
const guild = this.client.guilds.get(settings.guild_id);
|
||||
this.guildSettings.set(settings.guild_id, new ClientUserGuildSettings(settings, guild));
|
||||
this.guildSettings.set(settings.guild_id, new ClientUserGuildSettings(settings, this.client));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user