mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -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
@@ -834,6 +834,8 @@ export class Remix {
|
|||||||
ch.send(payload).catch(err => {
|
ch.send(payload).catch(err => {
|
||||||
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
|
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
|
||||||
logger.warn(`[_spawnPlayer] Cannot send announcement in channel ${ch.id} — missing permissions`);
|
logger.warn(`[_spawnPlayer] Cannot send announcement in channel ${ch.id} — missing permissions`);
|
||||||
|
} else {
|
||||||
|
logger.warn(`[_spawnPlayer] Failed to send announcement in channel ${ch.id}:`, err?.message ?? err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|||||||
@@ -906,7 +906,10 @@ export class PlayerManager {
|
|||||||
logger.warn("[PlayerManager] Failed to find fallback text channel:", e?.message);
|
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;
|
if (!player.textChannel) player.textChannel = ch;
|
||||||
|
|
||||||
@@ -916,6 +919,8 @@ export class PlayerManager {
|
|||||||
ch.send(payload).catch(err => {
|
ch.send(payload).catch(err => {
|
||||||
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
|
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
|
||||||
logger.warn(`[PlayerManager] Cannot send player message in channel ${ch.id} — missing permissions`);
|
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