diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-03-29 00:03:42 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-03-29 00:03:42 -0400 |
| commit | 18f0b9d60c44f69fad6eb4716659c79f08f46711 (patch) | |
| tree | 9f18c1753bfb3fd695a0cc26068d3dc1515cb153 /commands/stop.js | |
| parent | 08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43 (diff) | |
| download | DLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.tar.gz DLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.tar.bz2 DLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.zip | |
Permission system on certain commands
Diffstat (limited to 'commands/stop.js')
| -rw-r--r-- | commands/stop.js | 1 |
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() |
