Fix await for user_is_registered

This commit is contained in:
Emily Doherty 2024-12-14 20:29:21 -08:00
parent a9e50c2c8e
commit ceaabe3dac

View File

@ -204,7 +204,7 @@ class Tracker(Extension):
name="remove-alert", description="Remove an alert you have signed up for"
)
async def remove_alert(self, ctx: SlashContext):
if not self._user_is_registered(ctx):
if not await self._user_is_registered(ctx):
return
user = await self._users.get(ctx.user.id)
alerts = await self._users.list_alerts(user)