24 lines
950 B
JavaScript
24 lines
950 B
JavaScript
const { MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: 'disable-loop', // Optional
|
|
aliases: [], // Optional
|
|
category: 'Music',
|
|
description: 'Stoppen Sie die Schleife der 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);
|
|
// Disable repeat mode
|
|
let status = client.player.setQueueRepeatMode(message, false);
|
|
|
|
const disloop = new MessageEmbed()
|
|
.setColor('#85b0d2')
|
|
.setDescription(`Warteschlange wird nicht mehr endlos wiederholt!`)
|
|
if(status === null)
|
|
return;
|
|
message.channel.send(disloop);
|
|
}
|
|
} |