From 39522995986d29d066494f6340c3bf6a80f926c2 Mon Sep 17 00:00:00 2001 From: theimperious1 Date: Thu, 14 Nov 2024 05:53:42 -0500 Subject: [PATCH] fix(tripsitme): stop claiming yourself --- src/discord/utils/tripsitme.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/discord/utils/tripsitme.ts b/src/discord/utils/tripsitme.ts index 5e2efeff5..d5093712f 100644 --- a/src/discord/utils/tripsitme.ts +++ b/src/discord/utils/tripsitme.ts @@ -313,6 +313,11 @@ export async function tripsitmeOwned( const target = await interaction.guild.members.fetch(userId); + if (target.id === actor.id) { + await interaction.editReply({ content: "You can't own your own ticket!" }); + return; + } + const userData = await db.users.upsert({ where: { discord_id: userId,