fix: migrate all commands & src to @fluxerjs native API

- Replace replyEmbed/sendEmbed/editEmbed with reply/send/edit
  across all 33 command files and 5 src/ files
- Remove unnecessary .toJSON() on EmbedBuilder (Fluxer auto-converts)
- Fix voice channel type checks: channel_type === "VoiceChannel" → type === 2
- Add missing edit() and send() methods to Message/ChannelContext wrappers
- Fix filter command: reactions now update per page on navigation

Closes channel cache crash (guild.channels.cache.keys undefined)
This commit is contained in:
NoLogicAlan committed 2026-05-05 20:09:25 +03:00
1 parent 19820e7209
commit 85f11fe34b
38 files changed
+395 -314

No files matched your search

+5 -5
View File
@@ -57,23 +57,23 @@ export async function run(message, data) {
const searchEmbed = new EmbedBuilder()
.setColor(getGlobalColor())
.setDescription("🔍 Searching...")
.toJSON();
;
let statusMsg = null;
try {
statusMsg = await message.replyEmbed({ embeds: [searchEmbed] });
statusMsg = await message.reply({ embeds: [searchEmbed] });
} catch (err) {
// Fluxer API timed out sending the status message — continue without it
}
const messages = p.play(query, false, provider);
messages.on("message", d => {
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d).toJSON();
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d);
if (statusMsg) {
statusMsg.editEmbed({ embeds: [embed] }).catch(() => {});
statusMsg.edit({ embeds: [embed] }).catch(() => {});
} else {
// statusMsg failed to send earlier, fall back to a fresh reply
message.replyEmbed({ embeds: [embed] }).catch(() => {});
message.reply({ embeds: [embed] }).catch(() => {});
}
});
}