generated from nhcarrigan/template
feat: add an about command #2
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user