diff --git a/src/discord/utils/techHelp.ts b/src/discord/utils/techHelp.ts index c5e215357..4e51497ba 100644 --- a/src/discord/utils/techHelp.ts +++ b/src/discord/utils/techHelp.ts @@ -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 }) diff --git a/src/discord/utils/tripsitme.ts b/src/discord/utils/tripsitme.ts index 7776ad96f..59afc5262 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,