pruneGuildMembers


General

pruneGuildMembers kicks the members who were inactive for a certain time and had not been assigned any roles.


Usage

Client:pruneGuildMembers(<number> days, (boolean) dry, (string) reason)
Returns: <User> user

Set theĀ dry to true, if you want to check how much people would have been kicked (without kicking them).


Limitations

See discordGuild PATCH.


Example

print(Client:pruneGuildMembers(1, true, "TEST"))

Back to top