Owners can bypass cooldowns with non persistent toggle (#4440)

* dev bypas cooldowns

* Toggleable within dev, new attrib

* Reuqested changes

* Remake content

* Looks like `reset_cooldown()` is under Command object :)

* Remove `await`

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Jamie
2020-12-23 19:25:32 +00:00
committed by GitHub
parent 300346dcd4
commit d01bca2314
3 changed files with 21 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ class RedBase(
self._ignored_cache = IgnoreManager(self._config)
self._whiteblacklist_cache = WhitelistBlacklistManager(self._config)
self._i18n_cache = I18nManager(self._config)
self._bypass_cooldowns = False
async def prefix_manager(bot, message) -> List[str]:
prefixes = await self._prefix_cache.get_prefixes(message.guild)