mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Rename Guild.prune to pruneMembers
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -493,7 +493,7 @@ class Guild {
|
|||||||
* .then(pruned => console.log(`I just pruned ${pruned} people!`);
|
* .then(pruned => console.log(`I just pruned ${pruned} people!`);
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
prune(days, dry = false) {
|
pruneMembers(days, dry = false) {
|
||||||
if (typeof days !== 'number') throw new TypeError('Days must be a number.');
|
if (typeof days !== 'number') throw new TypeError('Days must be a number.');
|
||||||
return this.client.rest.methods.pruneGuildMembers(this, days, dry);
|
return this.client.rest.methods.pruneGuildMembers(this, days, dry);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user