Moved createAudioResource from discord.js/voice to play function

This commit is contained in:
Christer Warén committed 2021-09-05 02:39:59 +03:00
1 parent 72d0054d25
commit 3fc28a79cb
3 files changed
+5 -3

No files matched your search

+1 -2
View File
@@ -1,6 +1,5 @@
const {
createAudioPlayer,
createAudioResource,
getVoiceConnection,
joinVoiceChannel
} = require("@discordjs/voice");
@@ -141,7 +140,7 @@ module.exports = {
radio.station = station;
radio.textChannel = interaction.channel;
radio.startTime = date.getTime();
play(interaction, interaction.guild, client, url, Discord);
client.funcs.play(interaction, interaction.guild, client, url, Discord);
return;
}