generated from nhcarrigan/template
fix: ephemeral response
Some checks failed
Node.js CI / Lint and Test (pull_request) Failing after 42s
Some checks failed
Node.js CI / Lint and Test (pull_request) Failing after 42s
This commit is contained in:
parent
d08ceeda2a
commit
00b21d4954
@ -10,6 +10,7 @@ import {
|
|||||||
ButtonBuilder,
|
ButtonBuilder,
|
||||||
ButtonStyle,
|
ButtonStyle,
|
||||||
EmbedBuilder,
|
EmbedBuilder,
|
||||||
|
MessageFlags,
|
||||||
type ChatInputCommandInteraction,
|
type ChatInputCommandInteraction,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
import { i18n } from "../utils/i18n.js";
|
import { i18n } from "../utils/i18n.js";
|
||||||
@ -21,7 +22,7 @@ import { getLocale } from "./getLocale.js";
|
|||||||
*/
|
*/
|
||||||
export const about
|
export const about
|
||||||
= async(interaction: ChatInputCommandInteraction): Promise<void> => {
|
= async(interaction: ChatInputCommandInteraction): Promise<void> => {
|
||||||
await interaction.deferReply();
|
await interaction.deferReply({ flags: [ MessageFlags.Ephemeral ] });
|
||||||
const targetLocale = getLocale(interaction);
|
const targetLocale = getLocale(interaction);
|
||||||
|
|
||||||
const version = process.env.npm_package_version ?? "Unknown";
|
const version = process.env.npm_package_version ?? "Unknown";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user