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:
jack1142
2021-06-17 19:27:56 +02:00
committed by GitHub
parent be04ec1c86
commit a99240f7c3
4 changed files with 3 additions and 56 deletions

View File

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