Skip to content

Commit f81b623

Browse files
authored
feat: add state/details/large/small_url (#319)
1 parent 3269d08 commit f81b623

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/commands/setActivity.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {commandFactory} from '../utils/commandFactory';
66

77
export const SetActivity = Activity.pick({
88
state: true,
9+
state_url: true,
910
details: true,
11+
details_url: true,
1012
timestamps: true,
1113
assets: true,
1214
party: true,

src/schema/common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export const Activity = zod.object({
154154
.nullable(),
155155
application_id: zod.string().optional().nullable(),
156156
details: zod.string().optional().nullable(),
157+
details_url: zod.string().url().optional().nullable(),
157158
state: zod.string().optional().nullable(),
159+
state_url: zod.string().url().optional().nullable(),
158160
emoji: Emoji.optional().nullable(),
159161
party: zod
160162
.object({
@@ -167,8 +169,10 @@ export const Activity = zod.object({
167169
.object({
168170
large_image: zod.string().nullable(),
169171
large_text: zod.string().nullable(),
172+
large_url: zod.string().url().optional().nullable(),
170173
small_image: zod.string().nullable(),
171174
small_text: zod.string().nullable(),
175+
small_url: zod.string().url().optional().nullable(),
172176
})
173177
.partial()
174178
.optional()

0 commit comments

Comments
 (0)