From ceaabe3daca31eef8b0daa6fc04b24b9a80f58c0 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sat, 14 Dec 2024 20:29:21 -0800 Subject: [PATCH] Fix await for user_is_registered --- token_bot/tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token_bot/tracker.py b/token_bot/tracker.py index a44946e..a192f6d 100644 --- a/token_bot/tracker.py +++ b/token_bot/tracker.py @@ -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)