Skip to content

Commit

Permalink
Merge branch 'main' into chore/shorten-ticket-lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 authored Nov 21, 2024
2 parents e31a44a + 16b759e commit ee25d2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/utils/techHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function techHelpClick(interaction:ButtonInteraction) {
.setCustomId(`${issueType}IssueInput`)
.setRequired(true)
.setMinLength(10)
.setMaxLength(2000))));
.setMaxLength(1800))));

const filter = (i:ModalSubmitInteraction) => i.customId.includes('techHelpSubmit');
interaction.awaitModalSubmit({ filter, time: 0 })
Expand Down
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 ee25d2e

Please sign in to comment.