Skip to content

Commit

Permalink
fix: broken role restoration due to missing await (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 21, 2024
1 parent 8646319 commit 946bc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canary/cogs/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async def previous_roles(self, ctx: commands.Context, user: discord.Member):
A moderator can click the OK react on the message to give these roles back
"""

if is_in_muted_table(self.bot, user):
if await is_in_muted_table(self.bot, user):
await ctx.send("Cannot restore roles to a muted user")
return

Expand Down

0 comments on commit 946bc3d

Please sign in to comment.