New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/guilds/{guild_id}/prune \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"days": 15,
"compute_prune_count": true,
"include_roles": "<string>"
}
'{
"pruned": 123
}curl --request POST \
--url https://discord.com/api/v10/guilds/{guild_id}/prune \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"days": 15,
"compute_prune_count": true,
"include_roles": "<string>"
}
'{
"pruned": 123
}Discord bot token
200 response for prune_guild