Skip to content

Commit

Permalink
fix: missing await causing everyone to be muted on join (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 20, 2024
1 parent 28856e7 commit dd918ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canary/cogs/mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ async def on_message_delete(self, message):
@CanaryCog.listener()
async def on_member_join(self, user: discord.Member):
# If the user was already muted, restore the muted role
if is_in_muted_table(self.bot, user):
if await is_in_muted_table(self.bot, user):
await user.add_roles(self.muted_role, reason="Restored muted status")


Expand Down

0 comments on commit dd918ba

Please sign in to comment.