From 825a541b0d01a299daa9ac0f18e42398b4899a0f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 5 Mar 2023 22:58:41 -0500 Subject: [PATCH] fixed sugoncredit - missing awaits --- sugoncredit/sugoncredit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugoncredit/sugoncredit.py b/sugoncredit/sugoncredit.py index d012eb4..05fa735 100644 --- a/sugoncredit/sugoncredit.py +++ b/sugoncredit/sugoncredit.py @@ -44,7 +44,7 @@ class SugonCredit(commands.Cog): return else: embed=discord.Embed(title=f"{bank_name} - Add", color=await self.bot.get_embed_color(None), description=f"{target.mention}'s {currency_name} balance has been increased by {amount}.\nCurrent balance is {new_bal}.") - bank.deposit_credits(target, amount=amount) + await bank.deposit_credits(target, amount=amount) await ctx.send(embed=embed) @credit.command() @@ -61,5 +61,5 @@ class SugonCredit(commands.Cog): return else: embed=discord.Embed(title=f"{bank_name} - Remove", color=await self.bot.get_embed_color(None), description=f"{target.mention}'s {currency_name} balance has been decreased by {amount}.\nCurrent balance is {new_bal}.") - bank.withdraw_credits(target, amount=amount) + await bank.withdraw_credits(target, amount=amount) await ctx.send(embed=embed) \ No newline at end of file