fix: allow non-mods to use birthday

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

@ -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.",