will it work?
This commit is contained in:
parent
bf24849b59
commit
066be8915e
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class TtsvcCommand extends Command {
|
|||
|
||||
if (message.member.voice.channel) {
|
||||
const connection = await message.member.voice.channel.join();
|
||||
const dispatcher = connection.play('../../ttsvc.mp3');
|
||||
const dispatcher = connection.playFile('../../ttsvc.mp3');
|
||||
dispatcher.on('finish', () => {
|
||||
dispatcher.destroy();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue