Skip to content

Commit

Permalink
Merge branch 'main' into limit-modal-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 authored Nov 21, 2024
2 parents 3a14df4 + 5ab74c6 commit c45ef0c
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 c45ef0c

Please sign in to comment.