From f7723e8aad4b38f6fa6c960235674d9bee720ebc Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Thu, 29 May 2025 10:02:19 -0400 Subject: [PATCH] Update finduser.ts --- src/commands/finduser.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/finduser.ts b/src/commands/finduser.ts index ddafb0e..471ca69 100644 --- a/src/commands/finduser.ts +++ b/src/commands/finduser.ts @@ -24,7 +24,9 @@ export default { .setRequired(false) ), handler: async function (client: Client, interaction: ChatInputCommandInteraction) { - if (await channelIsInStaffCategory(interaction.channel as GuildBasedChannel)) await interaction.deferReply(); + const isStaffChannel = await channelIsInStaffCategory(interaction.channel as GuildBasedChannel); + + if (isStaffChannel) await interaction.deferReply(); else await interaction.deferReply({flags: [MessageFlags.Ephemeral]}); const username = interaction.options.getString('username');