mirror of
https://github.com/Art-Portal/April.git
synced 2025-01-13 15:03:40 +01:00
Update reload.js
This commit is contained in:
parent
37e8bdbf1c
commit
3985bc3f44
@ -2,14 +2,13 @@ const { SlashCommandBuilder } = require('discord.js');
|
|||||||
const { devId } = require('../../config.json');
|
const { devId } = require('../../config.json');
|
||||||
const { deploy_commands } = require('../../functions.js')
|
const { deploy_commands } = require('../../functions.js')
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('reload')
|
.setName('reload')
|
||||||
.setDefaultMemberPermissions(0x8)
|
.setDefaultMemberPermissions(0x8)
|
||||||
.setDescription('Recharge les commandes du bot (dev only).'),
|
.setDescription('Recharge les commandes du bot (dev only).'),
|
||||||
async execute(interaction, client) {
|
async execute(interaction, client) {
|
||||||
if (!interaction.user.id == devId) return void interaction.reply({ content: "Permission denied" });
|
if (!interaction.user.id == devId) return void interaction.reply({ content: "Permission denied" });
|
||||||
deploy_commands(client, false);
|
deploy_commands(client, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user