discord_bot/commands/music/join.js

18 lines
647 B
JavaScript

const { MessageEmbed } = require("discord.js");
module.exports = {
name: 'join', // Optional
aliases: [], // Optional
category: 'Music',
description: 'Tritt dem Sprachkanal bei!',
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.join()
message.react('🎼')
}
}