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
@@ -15,8 +15,8 @@ export async function run(msg, data) {
const code = data.get("id").value;
if (!this.dashboard?.enabled) {
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription("❌ The dashboard is not enabled on this bot.").toJSON();
return msg.replyEmbed({ embeds: [embed] });
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription("❌ The dashboard is not enabled on this bot.");
return msg.reply({ embeds: [embed] });
}
const error = await this.dashboard.confirmLogin(msg.author.id, code);
@@ -24,6 +24,6 @@ export async function run(msg, data) {
? "✅ Login succeeded! You can continue to the webpage now."
: "❌ Login failed! Reason: `" + error + "`. If this is an error and the issue persists, please contact a team member through the server in my description.";
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(desc).toJSON();
msg.replyEmbed({ embeds: [embed] });
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(desc);
msg.reply({ embeds: [embed] });
}