From 16bc2aab52f96f7a89f5b91cfdb4f6e42498070d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 03:12:23 +0300 Subject: [PATCH] Updated play function --- src/client/funcs/play.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/funcs/play.js b/src/client/funcs/play.js index 83f9729..24addeb 100644 --- a/src/client/funcs/play.js +++ b/src/client/funcs/play.js @@ -1,8 +1,9 @@ +import Discord from "discord.js"; const { createAudioResource } = require("@discordjs/voice"); -module.exports = async function play(interaction, guild, client, url, Discord) { +module.exports = async function play(interaction, guild, client, url) { let message = {}; const radio = client.radio.get(guild.id); const resource = createAudioResource(url);