we need this

This commit is contained in:
NoLogicAlan committed 2026-08-23 03:40:54 +03:00
1 parent 5ff380f0c9
commit cea0014e18
2 files changed
+8 -1

No files matched your search

+6 -1
View File
@@ -906,7 +906,10 @@ export class PlayerManager {
logger.warn("[PlayerManager] Failed to find fallback text channel:", e?.message);
}
}
if (!ch || typeof ch.send !== "function") return;
if (!ch || typeof ch.send !== "function") {
logger.warn(`[PlayerManager] Could not resolve any channel to send now-playing announcement (guild ${guildId})`);
return;
}
if (!player.textChannel) player.textChannel = ch;
@@ -916,6 +919,8 @@ export class PlayerManager {
ch.send(payload).catch(err => {
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
logger.warn(`[PlayerManager] Cannot send player message in channel ${ch.id} — missing permissions`);
} else {
logger.warn(`[PlayerManager] Failed to send player message in channel ${ch.id}:`, err?.message ?? err);
}
});
});