Made bot message Ephemeral
This commit is contained in:
parent
4f5beda018
commit
129a4c680d
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue