Skip to content

Commit 257e868

Browse files
committed
added proper permissions in reload.ts
1 parent a15ff88 commit 257e868

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands/reload.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import "../libs/loadVariables.js";
22
import {
33
SlashCommandBuilder,
4-
PermissionFlagsBits,
54
MessageFlags,
65
} from "discord.js";
76
import { loadCommands } from "../libs/loadCommands.js";
@@ -11,8 +10,7 @@ import { client } from "../index.js";
1110
export default new Command({
1211
info: new SlashCommandBuilder()
1312
.setName("reload")
14-
.setDescription("Reload all slash commands")
15-
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
13+
.setDescription("Reload all slash commands"),
1614
async execute(interaction) {
1715
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
1816

@@ -25,4 +23,5 @@ export default new Command({
2523
await interaction.editReply("Failed to reload commands.");
2624
}
2725
},
26+
requiredPermissions: ["Administrator"]
2827
})

0 commit comments

Comments
 (0)