mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
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:
1 parent
19820e7209
commit
85f11fe34b
38 files changed
+395
-314
No files matched your search
+3
-3
@@ -17,7 +17,7 @@ export function run(msg, data) {
|
||||
switch (data.get("target").value) {
|
||||
case "voice": {
|
||||
const servers = [...this.players.playerMap.entries()].map(([cid, s]) => {
|
||||
const channel = this.client.channels.cache.get(cid);
|
||||
const channel = this.client.channels.get(cid);
|
||||
return {
|
||||
name: channel?.name ?? "unknown",
|
||||
id: channel?.id ?? cid,
|
||||
@@ -30,8 +30,8 @@ export function run(msg, data) {
|
||||
.setColor(getGlobalColor())
|
||||
.setTitle("🔧 Voice Debug")
|
||||
.setDescription("```json\n" + JSON.stringify(servers, null, 2) + "\n```")
|
||||
.toJSON();
|
||||
msg.replyEmbed({ embeds: [embed] });
|
||||
;
|
||||
msg.reply({ embeds: [embed] });
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user