aboutsummaryrefslogtreecommitdiff
path: root/commands/stop.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/stop.js')
-rw-r--r--commands/stop.js1
1 files changed, 1 insertions, 0 deletions
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()