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