Fix erroneous docs examples (#1042)

This commit is contained in:
bdistin
2016-12-29 21:01:18 -06:00
committed by Schuyler Cebulskie
parent 863e34db19
commit 9e70d6279f

View File

@@ -542,12 +542,12 @@ class Guild {
* @example
* // see how many members will be pruned
* guild.pruneMembers(12, true)
* .then(pruned => console.log(`This will prune ${pruned} people!`);
* .then(pruned => console.log(`This will prune ${pruned} people!`))
* .catch(console.error);
* @example
* // actually prune the members
* guild.pruneMembers(12)
* .then(pruned => console.log(`I just pruned ${pruned} people!`);
* .then(pruned => console.log(`I just pruned ${pruned} people!`))
* .catch(console.error);
*/
pruneMembers(days, dry = false) {