mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mod] Preemptive fix for the next dpy update (#3891)
This commit is contained in:
parent
7a86cc4bf3
commit
6984dca394
@ -551,8 +551,7 @@ class KickBanMixin(MixinMeta):
|
|||||||
# Store this channel for the case channel.
|
# Store this channel for the case channel.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await member.move_to(discord.Object(id=None))
|
await member.move_to(None)
|
||||||
# Work around till we get D.py 1.1.0, whereby we can directly do None.
|
|
||||||
except discord.Forbidden: # Very unlikely that this will ever occur
|
except discord.Forbidden: # Very unlikely that this will ever occur
|
||||||
await ctx.send(_("I am unable to kick this member from the voice channel."))
|
await ctx.send(_("I am unable to kick this member from the voice channel."))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user