mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:31:23 +00:00
Discord: add per-button component allowlist
This commit is contained in:
@@ -69,6 +69,13 @@ const discordComponentButtonSchema = Type.Object({
|
||||
url: Type.Optional(Type.String()),
|
||||
emoji: Type.Optional(discordComponentEmojiSchema),
|
||||
disabled: Type.Optional(Type.Boolean()),
|
||||
allowedUsers: Type.Optional(
|
||||
Type.Array(
|
||||
Type.String({
|
||||
description: "Discord user ids or names allowed to interact with this button.",
|
||||
}),
|
||||
),
|
||||
),
|
||||
});
|
||||
|
||||
const discordComponentSelectSchema = Type.Object({
|
||||
|
||||
Reference in New Issue
Block a user