Skip to content
Search
Search the documentation
VoteCreateWebhookPayloadSchema
GitHub GitHub

VoteCreateWebhookPayloadSchema

Variable: VoteCreateWebhookPayloadSchema

const VoteCreateWebhookPayloadSchema: ZodMiniObject<{ data: ZodMiniObject<{ created_at: ZodMiniUnion<readonly [ZodMiniISODate, ZodMiniISODateTime]>; expires_at: ZodMiniUnion<readonly [ZodMiniISODate, ZodMiniISODateTime]>; id: ZodMiniString<string>; project: ZodMiniObject<{ id: ZodMiniString<string>; platform: ZodMiniEnum<{ discord: "discord"; roblox: "roblox"; }>; platform_id: ZodMiniString<string>; type: ZodMiniEnum<{ bot: "bot"; game: "game"; server: "server"; }>; }, $strip>; query: ZodMiniOptional<ZodMiniRecord<ZodMiniString<string>, ZodMiniString<string>>>; user: ZodMiniObject<{ avatar_url: ZodMiniURL; id: ZodMiniString<string>; name: ZodMiniString<string>; platform_id: ZodMiniString<string>; }, $strip>; weight: ZodMiniNumber<number>; }, $strip>; type: ZodMiniLiteral<"vote.create">; }, $strip>

Defined in: v1/schemas/votes.ts:53

The payload delivered to your webhook endpoint when a user votes for your project and you have subscribed to the vote.create event.