From 6984dca39427210265e2638b4fbea8f65898104a Mon Sep 17 00:00:00 2001 From: Flame442 <34169552+Flame442@users.noreply.github.com> Date: Sat, 30 May 2020 21:56:21 -0400 Subject: [PATCH] [Mod] Preemptive fix for the next dpy update (#3891) --- redbot/cogs/mod/kickban.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redbot/cogs/mod/kickban.py b/redbot/cogs/mod/kickban.py index 9462ec223..6be373785 100644 --- a/redbot/cogs/mod/kickban.py +++ b/redbot/cogs/mod/kickban.py @@ -551,8 +551,7 @@ class KickBanMixin(MixinMeta): # Store this channel for the case channel. try: - await member.move_to(discord.Object(id=None)) - # Work around till we get D.py 1.1.0, whereby we can directly do None. + await member.move_to(None) except discord.Forbidden: # Very unlikely that this will ever occur await ctx.send(_("I am unable to kick this member from the voice channel.")) return