From a4fdcbeddb22e74af2fcd0076d564877614d5ab6 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 1 Apr 2025 10:47:17 -0700 Subject: [PATCH] fix: allow non-mods to use birthday --- src/modules/interactions/handleChatInputCommand.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/interactions/handleChatInputCommand.ts b/src/modules/interactions/handleChatInputCommand.ts index d90e4e0..0f8c37c 100644 --- a/src/modules/interactions/handleChatInputCommand.ts +++ b/src/modules/interactions/handleChatInputCommand.ts @@ -35,9 +35,15 @@ export const handleChatInputCommand = async ( } if ( (!interaction.member || !isModerator(interaction.member)) && - !["leaderboard", "rank", "profile", "role", "help", "ping"].includes( - interaction.commandName - ) + ![ + "leaderboard", + "rank", + "profile", + "role", + "help", + "ping", + "birthday" + ].includes(interaction.commandName) ) { await interaction.reply({ content: "You must be a moderator to use bot commands.",