File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import "../libs/loadVariables.js" ;
22import {
33 SlashCommandBuilder ,
4- PermissionFlagsBits ,
54 MessageFlags ,
65} from "discord.js" ;
76import { loadCommands } from "../libs/loadCommands.js" ;
@@ -11,8 +10,7 @@ import { client } from "../index.js";
1110export 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} )
You can’t perform that action at this time.
0 commit comments