mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Updated play function
This commit is contained in:
parent
17132cd51a
commit
16bc2aab52
@ -1,8 +1,9 @@
|
|||||||
|
import Discord from "discord.js";
|
||||||
const {
|
const {
|
||||||
createAudioResource
|
createAudioResource
|
||||||
} = require("@discordjs/voice");
|
} = require("@discordjs/voice");
|
||||||
|
|
||||||
module.exports = async function play(interaction, guild, client, url, Discord) {
|
module.exports = async function play(interaction, guild, client, url) {
|
||||||
let message = {};
|
let message = {};
|
||||||
const radio = client.radio.get(guild.id);
|
const radio = client.radio.get(guild.id);
|
||||||
const resource = createAudioResource(url);
|
const resource = createAudioResource(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user