1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

Update handleVideo.ts

This commit is contained in:
MatteZ02 2020-04-13 14:04:09 +03:00
parent 76f4873c78
commit 7ad27e51cc

View File

@ -5,6 +5,7 @@ module.exports = async function (
client,
playlist = false
) {
const queueConfig = require("../config/queueConfig.ts");
const Discord = require("discord.js");
const song = {
title: Discord.Util.escapeMarkdown(video.title),
@ -22,7 +23,7 @@ module.exports = async function (
return msg.channel.send(message);
}
const construct = { ...require("../config/queueConfig.ts") };
const construct = { ...queueConfig };
construct.textChannel = msg.channel;
construct.voiceChannel = voiceChannel;