From 4bdebcd3399816c7a193eadf0fd572785a63ebed Mon Sep 17 00:00:00 2001 From: Tarek <13603398+Taarek@users.noreply.github.com> Date: Sat, 27 Jun 2020 04:54:02 +0200 Subject: Fix error raised when using the roles parameter. --- discord/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/guild.py') diff --git a/discord/guild.py b/discord/guild.py index ba5132a5..19cb1cc0 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -1379,7 +1379,7 @@ class Guild(Hashable): raise InvalidArgument('Expected int for ``days``, received {0.__class__.__name__} instead.'.format(days)) if roles: - roles = [role.id for role in roles] + roles = [str(role.id) for role in roles] data = await self._state.http.prune_members(self.id, days, compute_prune_count=compute_prune_count, roles=roles, reason=reason) return data['pruned'] -- cgit v1.2.3