From 578881e3dd0e18bc9eaa5f92bd95b11fa6b5b41a Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 18 Jan 2019 22:13:43 +0100 Subject: [PATCH] test --- commands/general/ttsvc.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/commands/general/ttsvc.js b/commands/general/ttsvc.js index 5647cf3..161c9a8 100644 --- a/commands/general/ttsvc.js +++ b/commands/general/ttsvc.js @@ -27,9 +27,6 @@ class TtsvcCommand extends Command { async exec(message, args) { let text = args.text; - const { voiceChannel } = message.member; - - // Construct the request const request = { input: { text: text }, @@ -59,7 +56,7 @@ class TtsvcCommand extends Command { // If not in voice channel ask user to join if (message.member.voice.channel) { - const connection = await message.member.voice.channel.join(); + const voiceChannel = message.member.voice.channel.join(); if (text == 'stop') { voiceChannel.leave(); message.channel.send('I leaved the channel');