From 3985bc3f440a4c15a1aca708f68acce08a2df42b Mon Sep 17 00:00:00 2001 From: Ninjdai <65647523+Ninjdai1@users.noreply.github.com> Date: Fri, 16 Dec 2022 08:26:32 +0100 Subject: [PATCH] Update reload.js --- commands/dev/reload.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/commands/dev/reload.js b/commands/dev/reload.js index f07a4bd..ae76a97 100644 --- a/commands/dev/reload.js +++ b/commands/dev/reload.js @@ -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); } -}; \ No newline at end of file +};