From 18f0b9d60c44f69fad6eb4716659c79f08f46711 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 29 Mar 2022 00:03:42 -0400 Subject: Permission system on certain commands --- commands/stop.js | 1 + 1 file changed, 1 insertion(+) (limited to 'commands/stop.js') diff --git a/commands/stop.js b/commands/stop.js index 3059997..62f4b1a 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -29,6 +29,7 @@ export default { .setName('stop') .setDescription('Powers off the bot'), async execute(interaction, bot) { + if (![config.botOwner].includes(interaction.user.id)) return await interaction.reply({ content: "You do not have permissions to execute this command.", ephemeral: true }); await interaction.reply('Powering off...') const statusEmbed = new MessageEmbed() -- cgit v1.2.3