mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(api): keep a deprecated nsfw field for older clients (#2463)
This commit is contained in:
1 parent
51cb750502
commit
3f1f899b23
3 files changed
+30
-6
No files matched your search
@@ -8,6 +8,7 @@ export const GuildEmojiResponse = z.object({
|
||||
id: SnowflakeStringType.describe('The unique identifier for this emoji'),
|
||||
name: z.string().describe('The name of the emoji'),
|
||||
animated: z.boolean().describe('Whether this emoji is animated'),
|
||||
nsfw: z.boolean().describe('Deprecated; always false. Retained for compatibility with older clients'),
|
||||
});
|
||||
|
||||
export type GuildEmojiResponse = z.infer<typeof GuildEmojiResponse>;
|
||||
@@ -16,6 +17,7 @@ export const GuildEmojiWithUserResponse = z.object({
|
||||
id: SnowflakeStringType.describe('The unique identifier for this emoji'),
|
||||
name: z.string().describe('The name of the emoji'),
|
||||
animated: z.boolean().describe('Whether this emoji is animated'),
|
||||
nsfw: z.boolean().describe('Deprecated; always false. Retained for compatibility with older clients'),
|
||||
user: z.lazy(() => UserPartialResponse).describe('The user who uploaded this emoji'),
|
||||
});
|
||||
|
||||
@@ -27,6 +29,7 @@ export const GuildStickerResponse = z.object({
|
||||
description: z.string().describe('The description of the sticker'),
|
||||
tags: z.array(z.string()).max(100).describe('Autocomplete/suggestion tags for the sticker'),
|
||||
animated: z.boolean().describe('Whether this sticker is animated'),
|
||||
nsfw: z.boolean().describe('Deprecated; always false. Retained for compatibility with older clients'),
|
||||
});
|
||||
|
||||
export type GuildStickerResponse = z.infer<typeof GuildStickerResponse>;
|
||||
@@ -37,6 +40,7 @@ export const GuildStickerWithUserResponse = z.object({
|
||||
description: z.string().describe('The description of the sticker'),
|
||||
tags: z.array(z.string()).max(100).describe('Autocomplete/suggestion tags for the sticker'),
|
||||
animated: z.boolean().describe('Whether this sticker is animated'),
|
||||
nsfw: z.boolean().describe('Deprecated; always false. Retained for compatibility with older clients'),
|
||||
user: z.lazy(() => UserPartialResponse).describe('The user who uploaded this sticker'),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user