21 lines
888 B
JavaScript
21 lines
888 B
JavaScript
const { MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: 'volume', // Optional
|
|
category: 'Music',
|
|
description: 'Stellen Sie die Lautstärke des Bots in der vc',
|
|
aliases: ['setvolume'], // Optional
|
|
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 isDone = client.player.setVolume(message, parseInt(args[0]));
|
|
const volume = new MessageEmbed()
|
|
.setColor('#85b0d2')
|
|
.setDescription(`Lautstärke auf ${args[0]}% eingestellt!`)
|
|
if(isDone)
|
|
message.channel.send(volume);
|
|
}
|
|
} |