mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix missing awaits (#1055)
This commit is contained in:
parent
10647f14b2
commit
fed115996c
@ -286,7 +286,7 @@ class Economy:
|
|||||||
guild = ctx.guild
|
guild = ctx.guild
|
||||||
if top < 1:
|
if top < 1:
|
||||||
top = 10
|
top = 10
|
||||||
if bank.is_global():
|
if await bank.is_global():
|
||||||
bank_sorted = sorted(await bank.get_global_accounts(ctx.author),
|
bank_sorted = sorted(await bank.get_global_accounts(ctx.author),
|
||||||
key=lambda x: x.balance, reverse=True)
|
key=lambda x: x.balance, reverse=True)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -318,7 +318,7 @@ async def get_guild_accounts(guild: discord.Guild) -> List[Account]:
|
|||||||
If the bank is currently global.
|
If the bank is currently global.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if is_global():
|
if await is_global():
|
||||||
raise RuntimeError("The bank is currently global.")
|
raise RuntimeError("The bank is currently global.")
|
||||||
|
|
||||||
ret = []
|
ret = []
|
||||||
@ -349,7 +349,7 @@ async def get_global_accounts(user: discord.User) -> List[Account]:
|
|||||||
If the bank is currently guild specific.
|
If the bank is currently guild specific.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not is_global():
|
if not await is_global():
|
||||||
raise RuntimeError("The bank is not currently global.")
|
raise RuntimeError("The bank is not currently global.")
|
||||||
|
|
||||||
ret = []
|
ret = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user