aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
authorTarek <[email protected]>2020-06-27 04:54:02 +0200
committerGitHub <[email protected]>2020-06-26 22:54:02 -0400
commit4bdebcd3399816c7a193eadf0fd572785a63ebed (patch)
treed41bffb38850639d65984a3770b15b7ab439e526 /discord/guild.py
parentChange PartialInviteGuild.icon_url_as to mimic Guild.icon_url_as (diff)
downloaddiscord.py-4bdebcd3399816c7a193eadf0fd572785a63ebed.tar.xz
discord.py-4bdebcd3399816c7a193eadf0fd572785a63ebed.zip
Fix error raised when using the roles parameter.
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
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']