Payday: Fix missing await (#3554)

This commit is contained in:
Michael H 2020-02-15 08:47:33 -05:00 committed by GitHub
parent 74a3eba08f
commit 888c47cdd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ class Economy(commands.Cog):
# Gets the users latest successfully payday and adds the guilds payday time # Gets the users latest successfully payday and adds the guilds payday time
next_payday = ( next_payday = (
await self.config.member(author).next_payday() await self.config.member(author).next_payday()
+ self.config.guild(guild).PAYDAY_TIME() + await self.config.guild(guild).PAYDAY_TIME()
) )
if cur_time >= next_payday: if cur_time >= next_payday:
credit_amount = await self.config.guild(guild).PAYDAY_CREDITS() credit_amount = await self.config.guild(guild).PAYDAY_CREDITS()