mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed switching voice channels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user