From e12625bfd6e3f08df1a9170fbbaa9487f8d3c2a0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 31 Aug 2017 07:20:00 +0000 Subject: [PATCH] Webpack build for branch master: 7b6190da01894da276a37e7b2a998b505dd55d3b --- discord.master.js | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/discord.master.js b/discord.master.js index 5cd135d2..7bdaa10c 100644 --- a/discord.master.js +++ b/discord.master.js @@ -5895,7 +5895,7 @@ class Role extends Base { /** * Set the permissions of the role. - * @param {string[]} permissions The permissions of the role + * @param {PermissionResolvable[]} permissions The permissions of the role * @param {string} [reason] Reason for changing the role's permissions * @returns {Promise} * @example @@ -7005,6 +7005,7 @@ class Guild extends Base { * @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 {ChannelResolvable} [systemChannel] The system channel of the guild * @property {number} [afkTimeout] The AFK timeout of the guild * @property {Base64Resolvable} [icon] The icon of the guild * @property {GuildMemberResolvable} [owner] The owner of the guild @@ -7213,6 +7214,7 @@ class Guild extends Base { /** * Allow direct messages from guild members. + * This is only available when using a user account. * @param {boolean} allow Whether to allow direct messages * @returns {Promise} */ @@ -7274,6 +7276,7 @@ class Guild extends Base { /** * Prunes members from the guild based on how long they have been inactive. + * @param {Object} [options] Prune options * @param {number} [options.days=7] Number of days of inactivity required to kick * @param {boolean} [options.dry=false] Get number of users that will be kicked, without actually kicking them * @param {string} [options.reason] Reason for this prune @@ -7308,7 +7311,7 @@ class Guild extends Base { * @typedef {Object} ChannelCreationOverwrites * @property {PermissionResolvable[]|number} [allow] The permissions to allow * @property {PermissionResolvable[]|number} [deny] The permissions to deny - * @property {RoleResolvable|UserResolvable} id ID of the group or member this overwrite is for + * @property {RoleResolvable|UserResolvable} id ID of the role or member this overwrite is for */ /** @@ -7482,7 +7485,7 @@ class Guild extends Base { * Delete an emoji. * @param {Emoji|string} emoji The emoji to delete * @param {string} [reason] Reason for deleting the emoji - * @returns {Promise} + * @returns {Promise} */ deleteEmoji(emoji, reason) { if (!(emoji instanceof Emoji)) emoji = this.emojis.get(emoji); @@ -7592,7 +7595,7 @@ class Guild extends Base { /** * Set the position of a role in this guild. - * @param {string|Role} role The role to edit, can be a role object or a role ID + * @param {RoleResolvable} role The role to edit, can be a role object or a role ID * @param {number} position The new position of the role * @param {boolean} [relative=false] Position Moves the role relative to its current position * @returns {Promise} @@ -7622,7 +7625,7 @@ class Guild extends Base { /** * Set the position of a channel in this guild. - * @param {string|GuildChannel} channel The channel to edit, can be a channel object or a channel ID + * @param {ChannelResolvable} channel The channel to edit, can be a channel object or a channel ID * @param {number} position The new position of the channel * @param {boolean} [relative=false] Position Moves the channel relative to its current position * @returns {Promise} @@ -7957,7 +7960,7 @@ class Webhook { /** * Edit the webhook. * @param {Object} options Options - * @param {string} [options.name] New name for this webhook + * @param {string} [options.name=this.name] New name for this webhook * @param {BufferResolvable} [options.avatar] New avatar for this webhook * @param {string} [reason] Reason for editing this webhook * @returns {Promise} @@ -9343,10 +9346,11 @@ class GuildChannel extends Channel { } /** - * An object mapping permission flags to `true` (enabled) or `false` (disabled). + * An object mapping permission flags to `true` (enabled), `null` (default) or `false` (disabled). * ```js * { * 'SEND_MESSAGES': true, + * 'EMBED_LINKS': null, * 'ATTACH_FILES': false, * } * ``` @@ -9433,7 +9437,7 @@ class GuildChannel extends Channel { * @property {number} [position] The position of the channel * @property {string} [topic] The topic of the text channel * @property {number} [bitrate] The bitrate of the voice channel - * @property {number} [userLimit] The user limit of voice the channel + * @property {number} [userLimit] The user limit of the voice channel */ /** @@ -13630,7 +13634,7 @@ class ClientApplication extends Base { /** * Reset the app's secret. * This is only available when using a user account. - * @returns {OAuth2Application} + * @returns {ClientApplication} */ resetSecret() { return this.client.api.oauth2.applications[this.id].reset.post() @@ -13640,7 +13644,7 @@ class ClientApplication extends Base { /** * Reset the app's bot token. * This is only available when using a user account. - * @returns {OAuth2Application} + * @returns {ClientApplication} */ resetToken() { return this.client.api.oauth2.applications[this.id].bot.reset.post() @@ -18378,6 +18382,7 @@ class ClientUserSettings { /** * Patch the data contained in this class with new partial data. * @param {Object} data Data to patch this with + * @private */ patch(data) { for (const [key, value] of Object.entries(Constants.UserSettingsMap)) { @@ -18393,14 +18398,16 @@ class ClientUserSettings { /** * Update a specific property of of user settings. * @param {string} name Name of property - * @param {value} value Value to patch + * @param {*} value Value to patch * @returns {Promise} + * @private */ update(name, value) { return this.user.client.api.users['@me'].settings.patch({ data: { [name]: value } }); } /** + * Sets the position of the guild in the guild listing. * @param {Guild} guild The guild to move * @param {number} position Absolute or relative position * @param {boolean} [relative=false] Whether to position relatively or absolutely @@ -18479,7 +18486,7 @@ class ClientDataResolver { * * A Snowflake * * A Message object (resolves to the message author) * * A GuildMember object - * @typedef {User|Snowflake|Message|Guild|GuildMember} UserResolvable + * @typedef {User|Snowflake|Message|GuildMember} UserResolvable */ /** @@ -18571,7 +18578,7 @@ class ClientDataResolver { * Data that can be resolved to give a Channel object. This can be: * * A Channel object * * A Snowflake - * @typedef {Channel|Guild|Message|Snowflake} ChannelResolvable + * @typedef {Channel|Snowflake} ChannelResolvable */ /** @@ -18618,7 +18625,7 @@ class ClientDataResolver { /** * Resolves a Base64Resolvable, a string, or a BufferResolvable to a Base 64 image. * @param {BufferResolvable|Base64Resolvable} image The image to be resolved - * @returns {Promise} + * @returns {Promise} */ async resolveImage(image) { if (!image) return null; @@ -18707,7 +18714,7 @@ class ClientDataResolver { * * A custom emoji ID * * An Emoji object * * A ReactionEmoji object - * @typedef {string|Emoji|ReactionEmoji} EmojiIdentifierResolvable + * @typedef {string|Snowflake|Emoji|ReactionEmoji} EmojiIdentifierResolvable */ /** @@ -23107,7 +23114,7 @@ class Client extends EventEmitter { /** * Obtains the OAuth Application of the bot from Discord. * @param {Snowflake} [id='@me'] ID of application to fetch - * @returns {Promise} + * @returns {Promise} */ fetchApplication(id = '@me') { return this.api.oauth2.applications(id).get() @@ -24418,6 +24425,7 @@ class ClientUserGuildSettings { /** * Patch the data contained in this class with new partial data. * @param {Object} data Data to patch this with + * @private */ patch(data) { for (const [key, value] of Object.entries(Constants.UserGuildSettingsMap)) { @@ -24438,8 +24446,9 @@ class ClientUserGuildSettings { /** * Update a specific property of the guild settings. * @param {string} name Name of property - * @param {value} value Value to patch + * @param {*} value Value to patch * @returns {Promise} + * @private */ update(name, value) { return this.client.api.users('@me').guilds(this.guildID).settings.patch({ data: { [name]: value } }); @@ -24466,6 +24475,7 @@ class ClientUserChannelOverride { /** * Patch the data contained in this class with new partial data. * @param {Object} data Data to patch this with + * @private */ patch(data) { for (const [key, value] of Object.entries(Constants.UserChannelOverrideMap)) {