mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
fix something
This commit is contained in:
@@ -160,7 +160,7 @@ let disp, con;
|
|||||||
client.on('message', msg => {
|
client.on('message', msg => {
|
||||||
if (msg.content.startsWith('/play')) {
|
if (msg.content.startsWith('/play')) {
|
||||||
const chan = msg.content.split(' ').slice(1).join(' ');
|
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')) {
|
if (msg.content.startsWith('/join')) {
|
||||||
const chan = msg.content.split(' ').slice(1).join(' ');
|
const chan = msg.content.split(' ').slice(1).join(' ');
|
||||||
|
|||||||
Reference in New Issue
Block a user