Update comment for permissions needed when pruning members (#3503)

This commit is contained in:
Fleny
2024-04-18 11:24:43 +02:00
committed by GitHub
parent 3e99aba7e9
commit dfa1514577

View File

@@ -2062,7 +2062,7 @@ export interface RestManager {
* @returns A number indicating the number of members that would be kicked.
*
* @remarks
* Requires the `KICK_MEMBERS` permission.
* Requires the `MANAGE_GUILD` and `KICK_MEMBERS` permissions.
*
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-prune-count}
*/
@@ -2751,7 +2751,7 @@ export interface RestManager {
* @returns A number indicating how many members were pruned.
*
* @remarks
* Requires the `KICK_MEMBERS` permission.
* Requires the `MANAGE_GUILD` and `KICK_MEMBERS` permissions.
*
* ❗ Requests to this endpoint will time out for large guilds. To prevent this from happening, set the {@link BeginGuildPrune.computePruneCount} property of the {@link options} object parameter to `false`. This will begin the process of pruning, and immediately return `undefined`, rather than wait for the process to complete before returning the actual count of members that have been kicked.
*