discord_bot/commands/music/resume.js

21 lines
844 B
JavaScript

const { MessageEmbed } = require("discord.js");
module.exports = {
name: 'resume', // Optional
aliases: ['resume'], // Optional
category: 'Music',
description: 'Setzen Sie den angehaltenen Song fort',
run: async (client, message, args) => {
const voice_channel = message.member.voice.channel;
const embed = new MessageEmbed()
.setColor('#FF5757')
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
if (!voice_channel) return message.channel.send(embed);
let song = client.player.resume(message);
const resume = new MessageEmbed()
.setColor('#85b0d2')
.setDescription(`**${song.name}** wurde fortgesetzt!`)
if(song)
message.channel.send(resume);
}
}