aboutsummaryrefslogtreecommitdiff
path: root/commands/control.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-03-29 00:03:42 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-03-29 00:03:42 -0400
commit18f0b9d60c44f69fad6eb4716659c79f08f46711 (patch)
tree9f18c1753bfb3fd695a0cc26068d3dc1515cb153 /commands/control.js
parent08aae8cd9e5417bd7451b9af2e3190bf9c6a4e43 (diff)
downloadDLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.tar.gz
DLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.tar.bz2
DLAP-18f0b9d60c44f69fad6eb4716659c79f08f46711.zip
Permission system on certain commands
Diffstat (limited to 'commands/control.js')
-rw-r--r--commands/control.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/control.js b/commands/control.js
index b3dd0bf..28c3aad 100644
--- a/commands/control.js
+++ b/commands/control.js
@@ -30,8 +30,9 @@ export default {
.setName('control')
.setDescription('Controlling the music'),
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 });
const controlEmbed = new MessageEmbed()
- .setAuthor({name:`${bot.user.username} Control Panel`, iconURL:bot.user.avatarURL()})
+ .setAuthor({name: `${bot.user.username} Control Panel`, iconURL: bot.user.avatarURL()})
.addField('State', 'Playing')
.addField('Currently Playing', audio)
//.addField('Next Music', '(a possible feature when queue system is implemented?)')