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:
jack1142
2021-02-13 23:24:42 +01:00
committed by GitHub
parent a9e572d55a
commit 40368cc379

View File

@@ -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:
"""