Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (message.member.voiceChannel) {
  2.         message.member.voiceChannel.join()
  3.           .then(connection => { // Connection is an instance of VoiceConnection
  4.             //message.reply('I have successfully connected to the channel!');
  5.           })
  6.           .catch(console.log);
  7.       } else {
  8.         message.reply('You need to join a voice channel first!').then(msg=>{
  9.           msg.delete(3000)
  10.       })
  11.       .catch();
  12.  
  13.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement