prune

open suspend fun prune(days: Int = 7, reason: String? = null): Int(source)

Requests to prune users in this guild.

A user is pruned if they have not been seen within the given days and don't have a Role assigned in this guild.

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.