21 lines
842 B
JavaScript
21 lines
842 B
JavaScript
const { MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: 'shuffle', // Optional
|
|
aliases: ['sh'], // Optional
|
|
category: 'Music',
|
|
description: 'Mischen Sie die Warteschlange',
|
|
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 songs = client.player.shuffle(message);
|
|
const shuffle = new MessageEmbed()
|
|
.setColor('#85b0d2')
|
|
.setDescription('Die Serverwarteschlange wurde gemischt.')
|
|
if(songs)
|
|
message.channel.send(shuffle);
|
|
}
|
|
} |