will it work?

This commit is contained in:
Supositware 2019-01-18 22:38:41 +01:00
parent bf24849b59
commit 066be8915e

View file

@ -57,7 +57,7 @@ class TtsvcCommand extends Command {
if (message.member.voice.channel) { if (message.member.voice.channel) {
const connection = await message.member.voice.channel.join(); const connection = await message.member.voice.channel.join();
const dispatcher = connection.play('../../ttsvc.mp3'); const dispatcher = connection.playFile('../../ttsvc.mp3');
dispatcher.on('finish', () => { dispatcher.on('finish', () => {
dispatcher.destroy(); dispatcher.destroy();
}); });