aboutsummaryrefslogtreecommitdiff
path: root/commands/pause.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/pause.js')
-rw-r--r--commands/pause.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/pause.js b/commands/pause.js
index 7615573..5306f63 100644
--- a/commands/pause.js
+++ b/commands/pause.js
@@ -20,13 +20,14 @@
***************************************************************************/
import { SlashCommandBuilder } from '@discordjs/builders'
-import config from '../config.json' assert {type: 'json'}
-import {audioState, isAudioStatePaused, player} from "../AudioBackend.js";
+import { audioState, isAudioStatePaused, player } from "../AudioBackend.js"
+import { PermissionFlagsBits } from "discord-api-types/v10"
export default {
data: new SlashCommandBuilder()
.setName('pause')
- .setDescription('Pauses the player'),
+ .setDescription('Pauses music')
+ .setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute(interaction) {
if (isAudioStatePaused === false) {
audioState();