Skip to content

Commit

Permalink
fix: someone not storing last use information (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
geisterfurz007 authored Jun 1, 2023
1 parent 13a12b7 commit 105bf04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/programs/someone-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class SomeoneTag implements CommandHandler<DiscordEvent.SLASH_COMMAND> {
interaction.channel as TextChannel
);

await prisma.someoneUser.upsert({
where: { id: member.user.id },
update: { time: new Date() },
create: { id: member.user.id, time: new Date() },
});
await interaction.reply({ content: "Done!", ephemeral: true });
}
}
Expand Down

0 comments on commit 105bf04

Please sign in to comment.