From efd1c4c51625fd3c16ce3535f4bd340551dbd8ae Mon Sep 17 00:00:00 2001 From: Frangu Vlad Date: Sun, 26 Nov 2017 11:59:21 +0200 Subject: [PATCH] docs: Remove leftover docstring from 11.2 (#2115) * Fix leftover docstring from 11.2 * Here too * Update Guild.js * Update GuildMember.js --- src/structures/Guild.js | 3 +-- src/structures/GuildMember.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 1eff773a2..fb6a6eed3 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -815,8 +815,7 @@ class Guild extends Base { /** * Bans a user from the guild. * @param {UserResolvable} user The user to ban - * @param {Object} [options] Ban options. If a number, the number of days to delete messages for, if a - * string, the ban reason. Supplying an object allows you to do both. + * @param {Object} [options] Options for the ban * @param {number} [options.days=0] Number of days of messages to delete * @param {string} [options.reason] Reason for banning * @returns {Promise} Result object will be resolved as specifically as possible. diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 05266e1b8..21f84ec98 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -521,8 +521,7 @@ class GuildMember extends Base { /** * Bans this guild member. - * @param {Object} [options] Ban options. If a number, the number of days to delete messages for, if a - * string, the ban reason. Supplying an object allows you to do both. + * @param {Object} [options] Options for the ban * @param {number} [options.days=0] Number of days of messages to delete * @param {string} [options.reason] Reason for banning * @returns {Promise}