Skip to content

Commit

Permalink
fix(tripsitme): stop claiming yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 committed Nov 14, 2024
1 parent a93e1b4 commit 3952299
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/discord/utils/tripsitme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3952299

Please sign in to comment.