mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Don't await react
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user