mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-14 03:50:18 +00:00
Moved createAudioResource from discord.js/voice to play function
This commit is contained in:
parent
72d0054d25
commit
3fc28a79cb
@ -1,6 +1,5 @@
|
|||||||
const {
|
const {
|
||||||
createAudioPlayer,
|
createAudioPlayer,
|
||||||
createAudioResource,
|
|
||||||
getVoiceConnection,
|
getVoiceConnection,
|
||||||
joinVoiceChannel
|
joinVoiceChannel
|
||||||
} = require("@discordjs/voice");
|
} = require("@discordjs/voice");
|
||||||
@ -141,7 +140,7 @@ module.exports = {
|
|||||||
radio.station = station;
|
radio.station = station;
|
||||||
radio.textChannel = interaction.channel;
|
radio.textChannel = interaction.channel;
|
||||||
radio.startTime = date.getTime();
|
radio.startTime = date.getTime();
|
||||||
play(interaction, interaction.guild, client, url, Discord);
|
client.funcs.play(interaction, interaction.guild, client, url, Discord);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
const {
|
||||||
|
createAudioResource
|
||||||
|
} = require("@discordjs/voice");
|
||||||
|
|
||||||
module.exports = async function play(interaction, guild, client, url, Discord) {
|
module.exports = async function play(interaction, guild, client, url, Discord) {
|
||||||
let message = {};
|
let message = {};
|
||||||
const radio = client.radio.get(guild.id);
|
const radio = client.radio.get(guild.id);
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import Discord from "discord.js";
|
import Discord from "discord.js";
|
||||||
const {
|
const {
|
||||||
createAudioPlayer,
|
createAudioPlayer,
|
||||||
createAudioResource,
|
|
||||||
getVoiceConnection,
|
getVoiceConnection,
|
||||||
joinVoiceChannel
|
joinVoiceChannel
|
||||||
} = require("@discordjs/voice");
|
} = require("@discordjs/voice");
|
||||||
|
Loading…
Reference in New Issue
Block a user