-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
new featureNew featureNew feature
Description
- Código que foi previamente desenvolvido pelo @maiconspa, para esta feature
module.exports = (client, activeServer) => client.on("message", async (message) => {
const command = message.content.indexOf('!play') !== -1 ? 'play' : ''
if(command === 'play') {
message.member.voice.channel
? message.member.voice.channel.join()
.then(connection => message.reply('Consegui conectar ao canal de voz!'))
.catch(error => console.error(error))
: message.reply('Você precisa entrar em um canal de voz primeiro!')
client.player.play(message, message.content.split('!play ')[1], message.member.user)
}});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new featureNew featureNew feature