Made bot message Ephemeral

This commit is contained in:
Michel Fedde 2025-06-26 21:55:28 +02:00
parent 4f5beda018
commit 129a4c680d

View file

@ -1,4 +1,11 @@
import {CacheType, ChatInputCommandInteraction, hyperlink, PermissionFlagsBits, SlashCommandBuilder} from "discord.js"; import {
CacheType,
ChatInputCommandInteraction,
hyperlink,
MessageFlags,
PermissionFlagsBits,
SlashCommandBuilder
} from "discord.js";
import {ChatInteractionCommand, Command} from "./Command"; import {ChatInteractionCommand, Command} from "./Command";
import * as fs from "node:fs"; import * as fs from "node:fs";
import {UserError} from "../UserError"; import {UserError} from "../UserError";
@ -53,7 +60,8 @@ export class BotCommand implements Command, ChatInteractionCommand {
) )
interaction.reply({ interaction.reply({
embeds: [embed] embeds: [embed],
flags: MessageFlags.Ephemeral
}) })
} }