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

+4 -4
View File
@@ -49,12 +49,12 @@ export async function run(message, data) {
const searchEmbed = new EmbedBuilder()
.setColor(getGlobalColor())
.setDescription("🔍 Searching...")
.toJSON();
const statusMsg = await message.replyEmbed({ embeds: [searchEmbed] });
;
const statusMsg = await message.reply({ embeds: [searchEmbed] });
const messages = p.playFirst(query, provider);
messages.on("message", d => {
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d).toJSON();
statusMsg.editEmbed({ embeds: [embed] }).catch(() => {});
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d);
statusMsg.edit({ embeds: [embed] }).catch(() => {});
});
}