blob: b07e6c71c01869200d60afdaff580638f52f793c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module.exports = {
name: 'join',
aliases: ['j'],
description: '',
execute(msg, args, bot) {
if (!msg.guild.voiceConnection && msg.member.voiceChannel) {
msg.member.voiceChannel.join();
msg.reply('succesfully joined voice channel');
} else if (msg.guild.voiceConnection) {
msg.reply('i\'m already in voice channel');
} else if (!msg.member.voiceChannel) {
msg.reply('you\'re not in a voice channel');
}
}
};
|