This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legacy-musicbot/commands/pause.js
2020-11-15 18:50:56 +01:00

14 lines
486 B
JavaScript

const emotes = require("../config/emojis.json");
exports.run = async (client, message) => {
if (!message.member.voice.channel) return message.channel.send(`You're not in a voice channel ${emotes.error}`);
if (!client.player.getQueue(message)) return message.channel.send(`No music playing on this server ${emotes.error}`);
client.player.pause(message);
message.channel.send(`Song ${client.player.getQueue(message).playing.title} **paused** ${emotes.success}`);
};