fixed sugoncredit - missing awaits
This commit is contained in:
parent
3444e6736e
commit
825a541b0d
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class SugonCredit(commands.Cog):
|
||||||
return
|
return
|
||||||
else:
|
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}.")
|
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)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@credit.command()
|
@credit.command()
|
||||||
|
@ -61,5 +61,5 @@ class SugonCredit(commands.Cog):
|
||||||
return
|
return
|
||||||
else:
|
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}.")
|
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)
|
await ctx.send(embed=embed)
|
Loading…
Reference in a new issue