mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
chore: bump @fluxerjs/core + voice to v1.4.0, add allowedMentions suppression
- Bump SDK deps to ^1.4.0 (ws security fix, official { ping: false }
support, allowedMentions on channel.send)
- Add allowedMentions: { parse: [] } to announcement channel.send()
calls in PlayerManager, index._spawnPlayer, and GatewayHandler
permission warnings — prevents accidental pings from embed
descriptions containing user mentions
- Fix unhandled rejection in CommandLoader error-reply: the fallback
data.message.reply() wasn't caught, so a network failure during the
error-reply itself would crash. Now wrapped in
Promise.resolve(...).catch(...)
This commit is contained in:
1 parent
20813bd1ff
commit
49447dc37b
5 files changed
+23
-12
No files matched your search
@@ -784,7 +784,10 @@ export class Remix {
|
||||
|
||||
if (!player.textChannel) player.textChannel = ch;
|
||||
|
||||
ch.send(typeof m === "object" && Array.isArray(m.embeds) ? m : { embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(m)] }).catch(err => {
|
||||
const payload = typeof m === "object" && Array.isArray(m.embeds)
|
||||
? { ...m, allowedMentions: { parse: [] } }
|
||||
: { embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(m)], allowedMentions: { parse: [] } };
|
||||
ch.send(payload).catch(err => {
|
||||
if (err.code === 'MISSING_PERMISSIONS' || err.statusCode === 403) {
|
||||
logger.warn(`[_spawnPlayer] Cannot send announcement in channel ${ch.id} — missing permissions`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user