Update reload.js

This commit is contained in:
Ninjdai 2022-12-16 08:26:32 +01:00 committed by GitHub
parent 37e8bdbf1c
commit 3985bc3f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,13 @@ const { SlashCommandBuilder } = require('discord.js');
const { devId } = require('../../config.json');
const { deploy_commands } = require('../../functions.js')
module.exports = {
data: new SlashCommandBuilder()
.setName('reload')
data: new SlashCommandBuilder()
.setName('reload')
.setDefaultMemberPermissions(0x8)
.setDescription('Recharge les commandes du bot (dev only).'),
async execute(interaction, client) {
.setDescription('Recharge les commandes du bot (dev only).'),
async execute(interaction, client) {
if (!interaction.user.id == devId) return void interaction.reply({ content: "Permission denied" });
deploy_commands(client, false);
}
};
};