From 4227988c7ebe4d4285adf224e294cb9c4a3af2b3 Mon Sep 17 00:00:00 2001 From: foxfirecodes Date: Thu, 10 Jul 2025 16:55:15 -0400 Subject: [PATCH] feat: add state/details/large/small_url --- src/commands/setActivity.ts | 2 ++ src/schema/common.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/commands/setActivity.ts b/src/commands/setActivity.ts index 6267274f..cd2a50fb 100644 --- a/src/commands/setActivity.ts +++ b/src/commands/setActivity.ts @@ -6,7 +6,9 @@ import {commandFactory} from '../utils/commandFactory'; export const SetActivity = Activity.pick({ state: true, + state_url: true, details: true, + details_url: true, timestamps: true, assets: true, party: true, diff --git a/src/schema/common.ts b/src/schema/common.ts index 07225c89..66d2e5dd 100644 --- a/src/schema/common.ts +++ b/src/schema/common.ts @@ -154,7 +154,9 @@ export const Activity = zod.object({ .nullable(), application_id: zod.string().optional().nullable(), details: zod.string().optional().nullable(), + details_url: zod.string().url().optional().nullable(), state: zod.string().optional().nullable(), + state_url: zod.string().url().optional().nullable(), emoji: Emoji.optional().nullable(), party: zod .object({ @@ -167,8 +169,10 @@ export const Activity = zod.object({ .object({ large_image: zod.string().nullable(), large_text: zod.string().nullable(), + large_url: zod.string().url().optional().nullable(), small_image: zod.string().nullable(), small_text: zod.string().nullable(), + small_url: zod.string().url().optional().nullable(), }) .partial() .optional()