mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
Update handleVideo.ts
This commit is contained in:
parent
76f4873c78
commit
7ad27e51cc
@ -5,6 +5,7 @@ module.exports = async function (
|
|||||||
client,
|
client,
|
||||||
playlist = false
|
playlist = false
|
||||||
) {
|
) {
|
||||||
|
const queueConfig = require("../config/queueConfig.ts");
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const song = {
|
const song = {
|
||||||
title: Discord.Util.escapeMarkdown(video.title),
|
title: Discord.Util.escapeMarkdown(video.title),
|
||||||
@ -22,7 +23,7 @@ module.exports = async function (
|
|||||||
return msg.channel.send(message);
|
return msg.channel.send(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
const construct = { ...require("../config/queueConfig.ts") };
|
const construct = { ...queueConfig };
|
||||||
|
|
||||||
construct.textChannel = msg.channel;
|
construct.textChannel = msg.channel;
|
||||||
construct.voiceChannel = voiceChannel;
|
construct.voiceChannel = voiceChannel;
|
||||||
|
Loading…
Reference in New Issue
Block a user