mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
module.exports = {
|
|
name: 'join',
|
|
description: 'joins a voice channel',
|
|
execute: async(message, args) => {
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
if (!voiceChannel) return message.reply('you need to join a channel!');
|
|
|
|
connection = await voiceChannel.join();
|
|
|
|
return message.channel.send('joined!');
|
|
}
|
|
}; |