mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Asynchronize the world
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user