mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
discord.py 2.0 update (3d914e08->2.0.1) (#5709)
This commit is contained in:
@@ -124,7 +124,7 @@ class VoiceMutes(MixinMeta):
|
||||
audit_reason = get_audit_reason(author, reason, shorten=True)
|
||||
|
||||
success = await self.channel_mute_user(
|
||||
guild, channel, author, user, until, audit_reason
|
||||
guild, channel, author, user, until, audit_reason, voice_mute=True
|
||||
)
|
||||
|
||||
if success["success"]:
|
||||
@@ -200,7 +200,7 @@ class VoiceMutes(MixinMeta):
|
||||
audit_reason = get_audit_reason(author, reason, shorten=True)
|
||||
|
||||
success = await self.channel_unmute_user(
|
||||
guild, channel, author, user, audit_reason
|
||||
guild, channel, author, user, audit_reason, voice_mute=True
|
||||
)
|
||||
|
||||
if success["success"]:
|
||||
|
||||
Reference in New Issue
Block a user