mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 01:33:29 +00:00
feat(discord): add configurable ephemeral option for slash commands
This commit is contained in:
9
src/discord/monitor/commands.ts
Normal file
9
src/discord/monitor/commands.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { DiscordSlashCommandConfig } from "../../config/types.discord.js";
|
||||
|
||||
export function resolveDiscordSlashCommandConfig(
|
||||
raw?: DiscordSlashCommandConfig,
|
||||
): Required<DiscordSlashCommandConfig> {
|
||||
return {
|
||||
ephemeral: raw?.ephemeral !== false,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user