Don't await react

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:31:46 +00:00
parent b368cebc84
commit 29ac65d220
+2 -2
View File
@@ -52,9 +52,9 @@ module.exports = class SoundBoardCommand extends commando.Command {
await voiceChannel.join().then(connection => {
let stream = sounds.paths[soundToPlay];
let dispatcher = connection.playStream(stream);
await message.react('🔊');
message.react('🔊');
dispatcher.on('end', () => {
await message.react('✅');
message.react('✅');
return voiceChannel.leave();
});
});