This commit is contained in:
NoLogicAlan committed 2026-05-12 23:18:42 +03:00
1 parent 4e1d23fd57
commit 0714d30a6f
5 files changed
+111 -100

No files matched your search

+3 -2
View File
@@ -622,6 +622,7 @@ export class PlayerManager {
return new Promise(resolve => {
let unsubscribeReactions;
let unsubscribeMessages;
const promptUser = msg.author ?? msg.message?.author ?? null;
const cleanup = () => {
unsubscribeMessages?.();
@@ -646,7 +647,7 @@ export class PlayerManager {
const cid = channel._id ?? channel.id;
this.initPlayer(msg, cid, (p) => resolve(p));
},
msg.author
promptUser
);
}
@@ -667,7 +668,7 @@ export class PlayerManager {
clearTimeout(timeout);
cleanup();
this.initPlayer(m, channel, (p) => resolve(p));
}, msg.author);
}, promptUser);
});
}