mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 05:58:38 +00:00
feat(discord): add configurable ephemeral option for slash commands
This commit is contained in:
@@ -142,6 +142,11 @@ export type DiscordUiConfig = {
|
||||
components?: DiscordUiComponentsConfig;
|
||||
};
|
||||
|
||||
export type DiscordSlashCommandConfig = {
|
||||
/** Reply ephemerally (default: true). */
|
||||
ephemeral?: boolean;
|
||||
};
|
||||
|
||||
export type DiscordAccountConfig = {
|
||||
/** Optional display name for this account (used in CLI/UI lists). */
|
||||
name?: string;
|
||||
@@ -226,6 +231,8 @@ export type DiscordAccountConfig = {
|
||||
agentComponents?: DiscordAgentComponentsConfig;
|
||||
/** Discord UI customization (components, modals, etc.). */
|
||||
ui?: DiscordUiConfig;
|
||||
/** Slash command configuration. */
|
||||
slashCommand?: DiscordSlashCommandConfig;
|
||||
/** Privileged Gateway Intents (must also be enabled in Discord Developer Portal). */
|
||||
intents?: DiscordIntentsConfig;
|
||||
/** Voice channel conversation settings. */
|
||||
|
||||
@@ -357,6 +357,12 @@ export const DiscordAccountSchema = z
|
||||
.strict()
|
||||
.optional(),
|
||||
ui: DiscordUiSchema,
|
||||
slashCommand: z
|
||||
.object({
|
||||
ephemeral: z.boolean().optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional(),
|
||||
intents: z
|
||||
.object({
|
||||
presence: z.boolean().optional(),
|
||||
|
||||
Reference in New Issue
Block a user