From 492123ff23a6137e7513e1fcb175b6c1faaab8b1 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Thu, 16 Oct 2025 22:28:32 +0200 Subject: [PATCH] chore: add `ApplicationCommandCreateSchema` --- .../bots/ApplicationCommandCreateSchema.ts | 19 +++++++++++++++++++ src/schemas/api/bots/index.ts | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/schemas/api/bots/ApplicationCommandCreateSchema.ts diff --git a/src/schemas/api/bots/ApplicationCommandCreateSchema.ts b/src/schemas/api/bots/ApplicationCommandCreateSchema.ts new file mode 100644 index 00000000..0217d889 --- /dev/null +++ b/src/schemas/api/bots/ApplicationCommandCreateSchema.ts @@ -0,0 +1,19 @@ +import { ApplicationCommandHandlerType, ApplicationCommandOption, ApplicationCommandType, ApplicationIntegrationType, InteractionContextType } from "@spacebar/schemas"; + +export interface ApplicationCommandCreateSchema { + type?: ApplicationCommandType; + name: string; + name_localizations?: Record; + description?: string; + description_localizations?: Record; + options?: ApplicationCommandOption[]; + default_member_permissions?: string; + /* + * @deprecated + */ + dm_permission?: boolean; + nsfw?: boolean; + integration_types?: ApplicationIntegrationType[]; + contexts?: InteractionContextType[]; + handler?: ApplicationCommandHandlerType; +} diff --git a/src/schemas/api/bots/index.ts b/src/schemas/api/bots/index.ts index 71e2047b..6c8c46b9 100644 --- a/src/schemas/api/bots/index.ts +++ b/src/schemas/api/bots/index.ts @@ -15,4 +15,5 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ +export * from "./ApplicationCommandCreateSchema"; export * from "./ApplicationCommandSchema";