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