Skip to content

Commit

Permalink
user id not user
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-zaidali committed Oct 2, 2023
1 parent 7079875 commit c00acae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timer/models.py
Expand Up @@ -49,7 +49,7 @@ async def _callback(self, button: "JoinTimerButton", interaction: discord.Intera

log.debug("timer exists")

result = await timer.add_entrant(interaction.user)
result = await timer.add_entrant(interaction.user.id)
kwargs = {}

if result:
Expand All @@ -58,7 +58,7 @@ async def _callback(self, button: "JoinTimerButton", interaction: discord.Intera
)

else:
await timer.remove_entrant(interaction.user)
await timer.remove_entrant(interaction.user.id)
kwargs.update(
{
"content": f"{interaction.user.mention} you will no longer be notified for the timer."
Expand Down

0 comments on commit c00acae

Please sign in to comment.