Fixed switching voice channels

This commit is contained in:
hydrabolt
2015-11-08 10:45:49 +00:00
parent 04c3dbedac
commit c5fe16af5b
5 changed files with 7 additions and 18 deletions

View File

@@ -24,6 +24,7 @@ client.on("message", m => {
rest.splice(0, 1);
rest = rest.join(" ");
if(client.internal.voiceConnection){
client.reply(m, "ok, I'll play that for you");
var connection = client.internal.voiceConnection;
connection.playFile("C:/users/amish/desktop/"+rest);
}