mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +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
@@ -116,6 +116,7 @@ export function mapGuildEmojiToResponse(emoji: GuildEmoji): z.infer<typeof Guild
|
||||
id,
|
||||
name: emoji.name,
|
||||
animated: emoji.isAnimated,
|
||||
nsfw: false,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -127,6 +128,7 @@ export function mapGuildStickerToResponse(sticker: GuildSticker): z.infer<typeof
|
||||
description: sticker.description ?? '',
|
||||
tags: sticker.tags,
|
||||
animated: sticker.animated,
|
||||
nsfw: false,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -178,6 +180,7 @@ function mapEmojiWithUser(
|
||||
id,
|
||||
name: emoji.name,
|
||||
animated: emoji.isAnimated,
|
||||
nsfw: false,
|
||||
user: userPartial,
|
||||
};
|
||||
}
|
||||
@@ -204,6 +207,7 @@ function mapStickerWithUser(
|
||||
description: sticker.description ?? '',
|
||||
tags: sticker.tags,
|
||||
animated: sticker.animated,
|
||||
nsfw: false,
|
||||
user: userPartial,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -27925,9 +27925,13 @@
|
||||
"description": "The unique identifier for this emoji"
|
||||
},
|
||||
"name": {"type": "string", "description": "The name of the emoji"},
|
||||
"animated": {"type": "boolean", "description": "Whether this emoji is animated"}
|
||||
"animated": {"type": "boolean", "description": "Whether this emoji is animated"},
|
||||
"nsfw": {
|
||||
"type": "boolean",
|
||||
"description": "Deprecated; always false. Retained for compatibility with older clients"
|
||||
}
|
||||
},
|
||||
"required": ["id", "name", "animated"]
|
||||
"required": ["id", "name", "animated", "nsfw"]
|
||||
},
|
||||
"GuildStickerResponse": {
|
||||
"type": "object",
|
||||
@@ -27945,9 +27949,13 @@
|
||||
"maxItems": 100,
|
||||
"description": "Autocomplete/suggestion tags for the sticker"
|
||||
},
|
||||
"animated": {"type": "boolean", "description": "Whether this sticker is animated"}
|
||||
"animated": {"type": "boolean", "description": "Whether this sticker is animated"},
|
||||
"nsfw": {
|
||||
"type": "boolean",
|
||||
"description": "Deprecated; always false. Retained for compatibility with older clients"
|
||||
}
|
||||
},
|
||||
"required": ["id", "name", "description", "tags", "animated"]
|
||||
"required": ["id", "name", "description", "tags", "animated", "nsfw"]
|
||||
},
|
||||
"GuildCreateRequest": {
|
||||
"type": "object",
|
||||
@@ -28931,9 +28939,13 @@
|
||||
},
|
||||
"name": {"type": "string", "description": "The name of the emoji"},
|
||||
"animated": {"type": "boolean", "description": "Whether this emoji is animated"},
|
||||
"nsfw": {
|
||||
"type": "boolean",
|
||||
"description": "Deprecated; always false. Retained for compatibility with older clients"
|
||||
},
|
||||
"user": {"$ref": "#/components/schemas/UserPartialResponse"}
|
||||
},
|
||||
"required": ["id", "name", "animated", "user"]
|
||||
"required": ["id", "name", "animated", "nsfw", "user"]
|
||||
},
|
||||
"GuildEmojiBulkCreateResponse": {
|
||||
"type": "object",
|
||||
@@ -29430,9 +29442,13 @@
|
||||
"description": "Autocomplete/suggestion tags for the sticker"
|
||||
},
|
||||
"animated": {"type": "boolean", "description": "Whether this sticker is animated"},
|
||||
"nsfw": {
|
||||
"type": "boolean",
|
||||
"description": "Deprecated; always false. Retained for compatibility with older clients"
|
||||
},
|
||||
"user": {"$ref": "#/components/schemas/UserPartialResponse"}
|
||||
},
|
||||
"required": ["id", "name", "description", "tags", "animated", "user"]
|
||||
"required": ["id", "name", "description", "tags", "animated", "nsfw", "user"]
|
||||
},
|
||||
"GuildStickerBulkCreateResponse": {
|
||||
"type": "object",
|
||||
|
||||
Reference in new issue
Block a user