discord_bot/commands/music/push.js

22 lines
843 B
JavaScript
Raw Normal View History

const { MessageEmbed } = require("discord.js");
module.exports = {
name: 'pause', // Optional
aliases: ['paus'], // Optional
category: 'Music',
description: 'Halten Sie die Warteschlange an',
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.pause(message);
const pause = new MessageEmbed()
.setColor('#85b0d2')
.setDescription(`**${song.name}** wurde pausiert!`)
if(song)
message.channel.send(pause);
}
}