mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix changing default state for a cog as enabled/disabled (#4768)
* Fix changing default state for a cog as enabled/disabled * Add `, None`
This commit is contained in:
parent
a9e572d55a
commit
40368cc379
@ -437,7 +437,7 @@ class DisabledCogCache:
|
||||
This should be the cog's qualified name, not necessarily the classname
|
||||
"""
|
||||
await self._config.custom("COG_DISABLE_SETTINGS", cog_name, 0).disabled.set(True)
|
||||
del self._disable_map[cog_name]
|
||||
self._disable_map.pop(cog_name, None)
|
||||
|
||||
async def default_enable(self, cog_name: str):
|
||||
"""
|
||||
@ -449,7 +449,7 @@ class DisabledCogCache:
|
||||
This should be the cog's qualified name, not necessarily the classname
|
||||
"""
|
||||
await self._config.custom("COG_DISABLE_SETTINGS", cog_name, 0).disabled.clear()
|
||||
del self._disable_map[cog_name]
|
||||
self._disable_map.pop(cog_name, None)
|
||||
|
||||
async def disable_cog_in_guild(self, cog_name: str, guild_id: int) -> bool:
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user