From c2c6d5f9f0f737601a01471100f4f3cb404908c1 Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Wed, 14 Oct 2026 17:24:50 +0800 Subject: [PATCH] (modals): Fix nix skill issue. --- src/modals/open-mod-ticket.ts | 2 +- src/modals/open-ticket-modal.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modals/open-mod-ticket.ts b/src/modals/open-mod-ticket.ts index 531280f..880421c 100644 --- a/src/modals/open-mod-ticket.ts +++ b/src/modals/open-mod-ticket.ts @@ -14,7 +14,7 @@ class OpenModTicketModal implements Modal { try { const settings = await Database.getOrCreateSettings(interaction.guildId); - if (settings.private_help_channel_id) throw new Error("`private_help_channel_id` hasn't been configured. Please report this error to staff."); + if (!settings.private_help_channel_id) throw new Error("`private_help_channel_id` hasn't been configured. Please report this error to staff."); const guild = await context.guilds.fetch(interaction.guildId); const member = await guild.members.fetch(userId); diff --git a/src/modals/open-ticket-modal.ts b/src/modals/open-ticket-modal.ts index 174c13a..647c6fa 100644 --- a/src/modals/open-ticket-modal.ts +++ b/src/modals/open-ticket-modal.ts @@ -15,7 +15,7 @@ class OpenTicketModal implements Modal { const member = await guild.members.fetch(interaction.user.id); const settings = await Database.getOrCreateSettings(interaction.guildId); - if (settings.private_help_role_id) throw new Error("`private_help_role_id` hasn't been configured. Please report this error to staff."); + if (!settings.private_help_role_id) throw new Error("`private_help_role_id` hasn't been configured. Please report this error to staff."); const reason = interaction.fields.getTextInputValue('ticket-message'); const thread = await createPrivateHelpTicketThread(context, guild, member, reason);