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
@@ -162,13 +162,13 @@ export async function run(msg, data) {
.setTitle(title)
.setDescription(desc)
.setFooter({ text: footerText })
.toJSON();
;
return { embeds: [embed] };
};
// 3. Send the initial message using the wrapper
const replyMsg = await msg.replyEmbed(buildPageContent(0));
const replyMsg = await msg.reply(buildPageContent(0));
if (!replyMsg?.message) return;
// 4. Setup React UI
@@ -200,7 +200,7 @@ export async function run(msg, data) {
emojiTimeout = setTimeout(async () => {
if (unobserve) unobserve();
await clearReactions();
await replyMsg.editEmbed(buildPageContent(currentPage, true)).catch(() => {});
await replyMsg.edit(buildPageContent(currentPage, true)).catch(() => {});
}, EMOJI_REMOVE_TIMEOUT);
};
@@ -224,7 +224,7 @@ export async function run(msg, data) {
}
// Update Embed
await replyMsg.editEmbed(buildPageContent(currentPage)).catch(() => {});
await replyMsg.edit(buildPageContent(currentPage)).catch(() => {});
});
resetTimer();