Skip to content
Search
Search the documentation
ApplicationCommandSchema
GitHub GitHub

ApplicationCommandSchema

Variable: ApplicationCommandSchema

const ApplicationCommandSchema: ZodMiniObject<{ default_member_permissions: ZodMiniOptional<ZodMiniNullable<ZodMiniString<string>>>; description: ZodMiniOptional<ZodMiniString<string>>; dm_permission: ZodMiniOptional<ZodMiniNullable<ZodMiniBoolean<boolean>>>; name: ZodMiniString<string>; nsfw: ZodMiniOptional<ZodMiniBoolean<boolean>>; options: ZodMiniOptional<ZodMiniArray<ZodMiniUnknown>>; type: ZodMiniOptional<ZodMiniNumber<number>>; }, $loose>

Defined in: v1/schemas/projects.ts:369

Permissive schema for a single Discord slash command definition. Intentionally does not replicate Discord’s full application command spec - the source of truth for exact shape is discord-api-types/Discord’s own docs.