generated from nhcarrigan/template
fix: allow non-mods to use birthday
This commit is contained in:
parent
78f32158ff
commit
a4fdcbeddb
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user