mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix KeyError in [p]muteset role (#4531)
This commit is contained in:
parent
2413c6abd3
commit
eeaac828d9
@ -656,6 +656,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
"""
|
||||
if not role:
|
||||
await self.config.guild(ctx.guild).mute_role.set(None)
|
||||
if ctx.guild.id in self.mute_role_cache:
|
||||
del self.mute_role_cache[ctx.guild.id]
|
||||
await self.config.guild(ctx.guild).sent_instructions.set(False)
|
||||
# reset this to warn users next time they may have accidentally
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user