mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
(modals): Fix nix skill issue.
This commit is contained in:
@@ -14,7 +14,7 @@ class OpenModTicketModal implements Modal<Client> {
|
||||
|
||||
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);
|
||||
|
||||
@@ -15,7 +15,7 @@ class OpenTicketModal implements Modal<Client> {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user