Added await to set for currency name (#935)

This commit is contained in:
aikaterna 2017-08-19 11:36:11 -07:00 committed by palmtree5
parent 2700a005d4
commit cd32932b75

View File

@ -179,7 +179,7 @@ class Economy:
bank set @Twentysix +2 - Increases balance by 2 bank set @Twentysix +2 - Increases balance by 2
bank set @Twentysix -6 - Decreases balance by 6""" bank set @Twentysix -6 - Decreases balance by 6"""
author = ctx.author author = ctx.author
currency = bank.get_currency_name(ctx.guild) currency = await bank.get_currency_name(ctx.guild)
if creds.operation == "deposit": if creds.operation == "deposit":
await bank.deposit_credits(to, creds.sum) await bank.deposit_credits(to, creds.sum)