mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Don't await playStream
This commit is contained in:
@@ -51,7 +51,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
|
||||
else {
|
||||
await voiceChannel.join().then(connection => {
|
||||
let stream = sounds.paths[soundToPlay];
|
||||
let dispatcher = await connection.playStream(stream);
|
||||
let dispatcher = connection.playStream(stream);
|
||||
await message.react('🔊');
|
||||
dispatcher.on('end', () => {
|
||||
await message.react('✅');
|
||||
|
||||
Reference in New Issue
Block a user