mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Remove support for Audio's Global API (#5143)
* Force-disable Audio's Global API functionality * Remove owner message about global API * Two more comments * Update CODEOWNERS * Bring back the owner notification, modified to not mention global DB * Remove the global api group fully, remove the mentions of it
This commit is contained in:
@@ -174,7 +174,8 @@ class GlobalCacheWrapper:
|
||||
async def get_perms(self):
|
||||
global_api_user = copy(self.cog.global_api_user)
|
||||
await self._get_api_key()
|
||||
is_enabled = await self.config.global_db_enabled()
|
||||
# global API is force-disabled right now
|
||||
is_enabled = False
|
||||
if (not is_enabled) or self.api_key is None:
|
||||
return global_api_user
|
||||
with contextlib.suppress(Exception):
|
||||
|
||||
Reference in New Issue
Block a user