aboutsummaryrefslogtreecommitdiff
path: root/commands/stop.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/stop.js')
-rw-r--r--commands/stop.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/stop.js b/commands/stop.js
index b3997e2..c57301e 100644
--- a/commands/stop.js
+++ b/commands/stop.js
@@ -20,13 +20,14 @@
***************************************************************************/
import { SlashCommandBuilder } from '@discordjs/builders'
-import config from '../config.json' assert {type: 'json'}
-import { stopBot } from "../AudioBackend.js";
+import { stopBot } from "../AudioBackend.js"
+import { PermissionFlagsBits } from "discord-api-types/v10"
export default {
data: new SlashCommandBuilder()
.setName('stop')
- .setDescription('Powers off the bot'),
+ .setDescription('Powers off the bot')
+ .setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute(interaction, bot) {
await interaction.reply({ content: 'Powering off...', ephemeral: true})
return await stopBot(bot, interaction);