19 lines
658 B
JavaScript
19 lines
658 B
JavaScript
|
const { MessageEmbed } = require("discord.js");
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'leave', // Optional
|
||
|
aliases: [], // Optional
|
||
|
category: 'Music',
|
||
|
description: 'Verlässt den Sprachkanal!',
|
||
|
|
||
|
run: async (client, message, args) => {
|
||
|
const voiceChannel = 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(!voiceChannel) return message.channel.send(embed)
|
||
|
voiceChannel.leave()
|
||
|
message.react('🪐')
|
||
|
|
||
|
}
|
||
|
}
|