Files
fluxer/commands/invite.mjs
T
NoLogicAlan 85f11fe34b 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)
2026-05-05 20:09:25 +03:00

32 lines
1.0 KiB
JavaScript

import { CommandBuilder } from "../src/CommandHandler.mjs";
import { EmbedBuilder } from "@fluxerjs/core";
import { getGlobalColor } from "../src/MessageHandler.mjs";
export const command = new CommandBuilder()
.setName("invite")
.setDescription("Get the invite link for Remix and the support server.", "commands.invite")
.addAliases("addbot", "remix")
.setCategory("util");
export async function run(message) {
const description =
"Add Remix to your server directly from [FluxerList](<https://fluxerlist.com/bots/remix>).\n\n" +
"Join our community at [fluxer.gg/remix](https://fluxer.gg/remix) for support, updates, and direct feedback.";
const botUser = message.handler.client.user;
const botIcon = botUser?.displayAvatarURL?.() || null;
const embed = new EmbedBuilder()
.setColor(getGlobalColor())
.setAuthor({
name: "Invite Remix",
iconURL: botIcon
})
.setDescription(description)
;
await message.reply({
embeds: [embed]
});
}