fix: allow non-mods to use birthday
All checks were successful
Node.js CI / Lint and Test (push) Successful in 1m22s
Code Analysis / SonarQube (push) Successful in 1m41s

This commit is contained in:
Naomi Carrigan 2025-04-01 10:47:17 -07:00
parent 78f32158ff
commit a4fdcbeddb
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8

View File

@ -35,9 +35,15 @@ export const handleChatInputCommand = async (
} }
if ( if (
(!interaction.member || !isModerator(interaction.member)) && (!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({ await interaction.reply({
content: "You must be a moderator to use bot commands.", content: "You must be a moderator to use bot commands.",