mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -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
@@ -138,16 +138,17 @@ export class GatewayHandler {
|
||||
|
||||
try {
|
||||
const permEmbed = remix.messages.buildPermissionEmbed(result.missing, guildId);
|
||||
await targetChannel.send({ embeds: [permEmbed] });
|
||||
await targetChannel.send({ embeds: [permEmbed], allowedMentions: { parse: [] } });
|
||||
} catch (e) {
|
||||
logger.warn(`[GuildCreate] Cannot send permission warning to server ${guildId}: ${e.message}`);
|
||||
try {
|
||||
const t = this.remix.locale?.translate?.bind(this.remix.locale);
|
||||
const guildIdStr = cleanId(guildId);
|
||||
await targetChannel.send(
|
||||
t ? t(guildIdStr, "responses.gateway.missingPermsFallback", { perms: missingNames.join("**, **") }) :
|
||||
"⚠️ I'm missing permissions I need to work properly! Missing: **" + missingNames.join("**, **") + "**. Please ask a server administrator to grant these permissions in Server Settings → Roles."
|
||||
);
|
||||
await targetChannel.send({
|
||||
content: t ? t(guildIdStr, "responses.gateway.missingPermsFallback", { perms: missingNames.join("**, **") }) :
|
||||
"⚠️ I'm missing permissions I need to work properly! Missing: **" + missingNames.join("**, **") + "**. Please ask a server administrator to grant these permissions in Server Settings → Roles.",
|
||||
allowedMentions: { parse: [] },
|
||||
});
|
||||
} catch (e) {
|
||||
logger.warn(`[GuildCreate] Cannot send ANY notification to server ${guildId} — bot is missing SendMessages permission:`, e?.message);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user