feat: add an about command #2

Merged
naomi merged 4 commits from feat/about into main 2025-02-10 15:43:06 -08:00
Showing only changes of commit 00b21d4954 - Show all commits

View File

@ -10,6 +10,7 @@ import {
ButtonBuilder,
ButtonStyle,
EmbedBuilder,
MessageFlags,
type ChatInputCommandInteraction,
} from "discord.js";
import { i18n } from "../utils/i18n.js";
@ -21,7 +22,7 @@ import { getLocale } from "./getLocale.js";
*/
export const about
= async(interaction: ChatInputCommandInteraction): Promise<void> => {
await interaction.deferReply();
await interaction.deferReply({ flags: [ MessageFlags.Ephemeral ] });
const targetLocale = getLocale(interaction);
const version = process.env.npm_package_version ?? "Unknown";