Update finduser.ts

This commit is contained in:
Tarrgon
2025-05-29 10:02:19 -04:00
parent b67c60529d
commit f7723e8aad
+3 -1
View File
@@ -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');