Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- exports.run = (client, message, args, ops) => {
- let fetched = ops.active.get(message.guild.id);
- const Discord1 = new Discord.RichEmbed()
- .setColor("0x000000")
- .setTitle("Sorry!")
- .addField("There currently isn't any music playing in this guild!")
- .setFooter("Pottor Bot | Made by SkysTv");
- if (!fetched) return message.channel.send(Discord1);
- const embed1 = new Discord.RichEmbed()
- .setColor("0x000000")
- .setTitle("Sorry!")
- .addField("You currently aren't in the same channel as the bot!")
- .setFooter("Pottor Bot | Made by SkysTv");
- if (message.member.voiceChannel !== message.guild.me.voiceChannel) return message.channel.send(embed1)
- if (!fetched.dispatcher.paused) return message.channel.send("The music is isn't paused.");
- fetched.dispatcher.resume()
- const embed2 = new Discord.RichEmbed()
- .setColor("0x000000")
- .setTitle("Song Resume")
- .setDescription("Successfully resumed the song!")
- .setFooter("Pottor Bot | Made by SkysTv");
- message.channel.send(embed2);
- }
- module.exports.help = {
- name: "resume"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement