mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix: resolve bugs in voice, filter, dashboard, and stats handling
- Fix filter command using stale track reference instead of current queue track - Fix playnext null check before editing status message - Fix join command using raw channel ID before cleaning it - Fix GatewayHandler passing wrong isBot flag in voice state cache - Fix Dashboard shared server filtering (was returning empty, now filters correctly) - Fix avatar fallback using discriminator (deprecated) → use user ID instead - Refactor Player.mjs: extract ConnectionState/LKRoomEvent to FluxerRevoice constants - Refactor Player.mjs: replace local formatMsHelper with Utils.prettifyMS - Add Logger.guild() method; use it in GatewayHandler instead of logger.info() - Remove rbl-stats module from modules.json - Remove unused empty event listeners in PlayerManager - Remove unused CRITICAL_PERMISSIONS import from GatewayHandler
This commit is contained in:
1 parent
58464e6862
commit
b581722c46
19 files changed
+45
-92
No files matched your search
@@ -9,7 +9,6 @@ export const command = new CommandBuilder()
|
||||
.addAliases("ap");
|
||||
|
||||
export async function run(msg, data) {
|
||||
const prefix = this.handler?.getPrefix?.(msg.message?.guildId) ?? "%";
|
||||
const p = await this.getPlayer(msg, true, true, false);
|
||||
if (!p) return;
|
||||
|
||||
@@ -19,7 +18,7 @@ export async function run(msg, data) {
|
||||
if (!p._autoplayHandler) {
|
||||
p._autoplayHandler = async () => {
|
||||
if (!p._autoplay) return;
|
||||
if (p.queue?.getCurrent() || !p.queue?.isEmpty()) return;
|
||||
if (p.queue?.getCurrent() && !p.queue?.isEmpty()) return;
|
||||
|
||||
const lastTrack = p._lastPlayedTrack;
|
||||
if (!lastTrack) return;
|
||||
|
||||
Reference in new issue
Block a user