mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
/**
|
|
* @module commands/support
|
|
* @description Displays a link and invitation to the bot's support server.
|
|
*/
|
|
|
|
import { CommandBuilder } from "../src/CommandHandler.mjs";
|
|
import { EmbedBuilder } from "@fluxerjs/core";
|
|
import { getGlobalColor } from "../src/MessageHandler.mjs";
|
|
|
|
/** @type {CommandBuilder} @description Command definition for the support command. */
|
|
export const command = new CommandBuilder()
|
|
.setName("support")
|
|
.setDescription("The support server for Remix. Feel free to ask help, report bugs or just chat :)", "commands.support")
|
|
.addAliases("server")
|
|
.setCategory("util");
|
|
|
|
/**
|
|
* Run handler for the support command.
|
|
* Sends an embed with the support server link.
|
|
* @param {object} msg - The command message wrapper.
|
|
* @returns {void}
|
|
*/
|
|
export function run(msg) {
|
|
const embed = new EmbedBuilder()
|
|
.setColor(getGlobalColor())
|
|
.setTitle(this.t(msg, "responses.support.title"))
|
|
.setDescription(
|
|
this.t(msg, "responses.support.description")
|
|
)
|
|
;
|
|
msg.reply({ embeds: [embed] }).catch(() => {});
|
|
}
|