Updated play function

This commit is contained in:
Christer Warén 2021-09-05 03:12:23 +03:00
parent 17132cd51a
commit 16bc2aab52

View File

@ -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);