mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 12:35:53 +00:00
Rename Guild.prune to pruneMembers
This commit is contained in:
parent
6ba0dd26a6
commit
8af96810dd
2 changed files with 2 additions and 2 deletions
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!`);
|
||||
* .catch(console.error);
|
||||
*/
|
||||
prune(days, dry = false) {
|
||||
pruneMembers(days, dry = false) {
|
||||
if (typeof days !== 'number') throw new TypeError('Days must be a number.');
|
||||
return this.client.rest.methods.pruneGuildMembers(this, days, dry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue