From 483aa5465d0e6b30fe9ad0be70635be3f9e0de01 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 30 May 2019 18:01:03 -0400 Subject: [PATCH] Properly handle compute_prune_count in prune members endpoint. --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index 85062e2d0..bfbb42012 100644 --- a/discord/http.py +++ b/discord/http.py @@ -619,7 +619,7 @@ class HTTPClient: def prune_members(self, guild_id, days, compute_prune_count, *, reason=None): params = { 'days': days, - 'compute_prune_count': compute_prune_count + 'compute_prune_count': 'true' if compute_prune_count else 'false' } return self.request(Route('POST', '/guilds/{guild_id}/prune', guild_id=guild_id), params=params, reason=reason)