Version 0.2.0-alpha - Ajout du Player
This commit is contained in:
15
backend/src/discord/Commands/Play.js
Normal file
15
backend/src/discord/Commands/Play.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const { Command } = require("../Command");
|
||||
const { Embed, EmbedError } = require("../Embed");
|
||||
const { Player } = require("../../player/Player");
|
||||
|
||||
const command = new Command("play", "Jouer une musique à partir d'un lien dans un salon vocal", (client, interaction) => {
|
||||
|
||||
if(!interaction.member.voice.channel) return new EmbedError("Vous devez rejoindre un salon vocal pour jouer une musique !").send(interaction)
|
||||
|
||||
const url = interaction.options.get("url")
|
||||
const channel = interaction.member.voice.channel
|
||||
|
||||
}, [{type: "STRING", name: "url", description: "Lien audio (Youtube / Soundclound / Spotify)", required: true}]
|
||||
)
|
||||
|
||||
module.exports = {command}
|
Reference in New Issue
Block a user