mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
Webpack build for branch master: fd11381cc5
This commit is contained in:
parent
642784a7bd
commit
9be6458931
2 changed files with 4 additions and 2 deletions
|
|
@ -17978,6 +17978,7 @@ class ClientUser extends User {
|
||||||
this.guildSettings = new Collection();
|
this.guildSettings = new Collection();
|
||||||
if (data.user_guild_settings) {
|
if (data.user_guild_settings) {
|
||||||
for (const settings of 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);
|
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, guild));
|
||||||
}
|
}
|
||||||
|
|
@ -25126,6 +25127,7 @@ const ClientUserChannelOverride = __webpack_require__(127);
|
||||||
class ClientUserGuildSettings {
|
class ClientUserGuildSettings {
|
||||||
constructor(data, guild) {
|
constructor(data, guild) {
|
||||||
this.guild = guild;
|
this.guild = guild;
|
||||||
|
this.client = data.client;
|
||||||
this.channelOverrides = new Collection();
|
this.channelOverrides = new Collection();
|
||||||
this.patch(data);
|
this.patch(data);
|
||||||
}
|
}
|
||||||
|
|
@ -25141,7 +25143,7 @@ class ClientUserGuildSettings {
|
||||||
if (key === 'channel_overrides') {
|
if (key === 'channel_overrides') {
|
||||||
for (const channel of data[key]) {
|
for (const channel of data[key]) {
|
||||||
this.channelOverrides.set(channel.channel_id,
|
this.channelOverrides.set(channel.channel_id,
|
||||||
new ClientUserChannelOverride(this.guild.client.user, channel));
|
new ClientUserChannelOverride(this.client.user, channel));
|
||||||
}
|
}
|
||||||
} else if (typeof value === 'function') {
|
} else if (typeof value === 'function') {
|
||||||
this[value.name] = value(data[key]);
|
this[value.name] = value(data[key]);
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue