Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (message.member.voiceChannel) {
- message.member.voiceChannel.join()
- .then(connection => { // Connection is an instance of VoiceConnection
- //message.reply('I have successfully connected to the channel!');
- })
- .catch(console.log);
- } else {
- message.reply('You need to join a voice channel first!').then(msg=>{
- msg.delete(3000)
- })
- .catch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement