Webpack build for branch master: e671a010cb

This commit is contained in:
Travis CI 2017-06-24 22:05:13 +00:00
parent 7eefcb29be
commit 50d93e9e6b
2 changed files with 20 additions and 7 deletions

View file

@ -5924,6 +5924,7 @@ class Guild {
* @property {string} [name] The name of the guild
* @property {string} [region] The region of the guild
* @property {number} [verificationLevel] The verification level of the guild
* @property {number} [explicitContentFilter] The level of the explicit content filter
* @property {ChannelResolvable} [afkChannel] The AFK channel of the guild
* @property {number} [afkTimeout] The AFK timeout of the guild
* @property {Base64Resolvable} [icon] The icon of the guild
@ -5949,16 +5950,28 @@ class Guild {
const _data = {};
if (data.name) _data.name = data.name;
if (data.region) _data.region = data.region;
if (data.verificationLevel) _data.verification_level = Number(data.verificationLevel);
if (typeof data.verificationLevel !== 'undefined') _data.verification_level = Number(data.verificationLevel);
if (data.afkChannel) _data.afk_channel_id = this.client.resolver.resolveChannel(data.afkChannel).id;
if (data.afkTimeout) _data.afk_timeout = Number(data.afkTimeout);
if (data.icon) _data.icon = this.client.resolver.resolveBase64(data.icon);
if (data.owner) _data.owner_id = this.client.resolver.resolveUser(data.owner).id;
if (data.splash) _data.splash = this.client.resolver.resolveBase64(data.splash);
if (typeof data.explicitContentFilter !== 'undefined') {
_data.explicit_content_filter = Number(data.explicitContentFilter);
}
return this.client.api.guilds(this.id).patch({ data: _data, reason })
.then(newData => this.client.actions.GuildUpdate.handle(newData).updated);
}
/**
* Edit the level of the explicit content filter.
* @param {number} explicitContentFilter The new level of the explicit content filter
* @returns {Promise<Guild>}
*/
setExplicitContentFilter(explicitContentFilter) {
return this.edit({ explicitContentFilter });
}
/**
* Edit the name of the guild.
* @param {string} name The new name of the guild

12
discord.master.min.js vendored

File diff suppressed because one or more lines are too long