mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
we need this
This commit is contained in:
1 parent
5ff380f0c9
commit
cea0014e18
2 files changed
+8
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user