Asynchronize the world

This commit is contained in:
thec0sm0s
2020-09-30 13:12:53 +05:30
parent 256d6cae81
commit bc15de5119
9 changed files with 74 additions and 70 deletions

View File

@@ -44,7 +44,7 @@ def requires_authorization(view):
@functools.wraps(view)
async def wrapper(*args, **kwargs):
if not current_app.discord.authorized:
if not await current_app.discord.authorized():
raise exceptions.Unauthorized
return await view(*args, **kwargs)