mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(api): drop NSFW classification for emojis and stickers (#2462)
This commit is contained in:
1 parent
1e6c332eae
commit
51cb750502
191 files changed
+18464
-19351
No files matched your search
@@ -72,7 +72,6 @@ export const MessageStickerResponse = z.object({
|
||||
id: SnowflakeStringType.describe('The unique identifier of the sticker'),
|
||||
name: z.string().describe('The name of the sticker'),
|
||||
animated: z.boolean().describe('Whether the sticker is animated'),
|
||||
nsfw: z.boolean().optional().describe('Whether this sticker is classified as NSFW'),
|
||||
});
|
||||
|
||||
export type MessageStickerResponse = z.infer<typeof MessageStickerResponse>;
|
||||
@@ -150,10 +149,6 @@ const MessageBaseResponseSchema = z.object({
|
||||
embeds: z.array(MessageEmbedResponse).nullish().describe('The embeds attached to the message'),
|
||||
attachments: z.array(MessageAttachmentResponse).nullish().describe('The files attached to the message'),
|
||||
stickers: z.array(MessageStickerResponse).nullish().describe('The stickers sent with the message'),
|
||||
nsfw_emojis: z
|
||||
.array(SnowflakeStringType)
|
||||
.optional()
|
||||
.describe('IDs of custom emojis in this message that are classified as NSFW'),
|
||||
reactions: z.array(MessageReactionResponse).nullish().describe('The reactions on the message'),
|
||||
message_reference: MessageReferenceResponse.nullish().describe('Reference data for replies or forwards'),
|
||||
message_snapshots: z.array(MessageSnapshotResponse).nullish().describe('Snapshots of forwarded messages'),
|
||||
@@ -310,7 +305,6 @@ export interface MessageStickerItem {
|
||||
readonly id: string;
|
||||
readonly name: string;
|
||||
readonly animated: boolean;
|
||||
readonly nsfw?: boolean;
|
||||
}
|
||||
|
||||
export interface AllowedMentions {
|
||||
@@ -352,7 +346,6 @@ export interface Message {
|
||||
readonly embeds?: ReadonlyArray<MessageEmbed>;
|
||||
readonly attachments?: ReadonlyArray<MessageAttachment>;
|
||||
readonly stickers?: ReadonlyArray<MessageStickerItem>;
|
||||
readonly nsfw_emojis?: ReadonlyArray<string>;
|
||||
readonly reactions?: ReadonlyArray<MessageReaction>;
|
||||
readonly message_reference?: MessageReference;
|
||||
readonly referenced_message?: Message | null;
|
||||
|
||||
Reference in new issue
Block a user