April/commands/dev/reload.js

15 lines
554 B
JavaScript
Raw Normal View History

const { SlashCommandBuilder } = require('discord.js');
const { devId } = require('../../config.json');
const { deploy_commands } = require('../../functions.js')
module.exports = {
2022-12-16 08:26:32 +01:00
data: new SlashCommandBuilder()
.setName('reload')
.setDefaultMemberPermissions(0x8)
2022-12-16 08:26:32 +01:00
.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);
}
2022-12-16 08:26:32 +01:00
};