mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
fix something
This commit is contained in:
parent
8dd2005ab9
commit
9d0dd665de
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ let disp, con;
|
|||
client.on('message', msg => {
|
||||
if (msg.content.startsWith('/play')) {
|
||||
const chan = msg.content.split(' ').slice(1).join(' ');
|
||||
con.playStream(ytdl(chan, {filter : 'audioonly'}), { passes : 4 });
|
||||
con.player.playUnknownStream(ytdl(chan, {filter : 'audioonly'}), { passes : 4 });
|
||||
}
|
||||
if (msg.content.startsWith('/join')) {
|
||||
const chan = msg.content.split(' ').slice(1).join(' ');
|
||||
|
|
|
|||
Loading…
Reference in a new issue