feat(api): drop NSFW classification for emojis and stickers (#2462)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-04 22:55:58 +02:00
1 parent 1e6c332eae
commit 51cb750502
191 files changed
+18464 -19351

No files matched your search

@@ -8,7 +8,6 @@ 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('Whether this emoji is classified as NSFW'),
});
export type GuildEmojiResponse = z.infer<typeof GuildEmojiResponse>;
@@ -17,7 +16,6 @@ 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('Whether this emoji is classified as NSFW'),
user: z.lazy(() => UserPartialResponse).describe('The user who uploaded this emoji'),
});
@@ -29,7 +27,6 @@ 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('Whether this sticker is classified as NSFW'),
});
export type GuildStickerResponse = z.infer<typeof GuildStickerResponse>;
@@ -40,7 +37,6 @@ 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('Whether this sticker is classified as NSFW'),
user: z.lazy(() => UserPartialResponse).describe('The user who uploaded this sticker'),
});
@@ -104,7 +100,6 @@ export interface GuildEmoji {
readonly id: string;
readonly name: string;
readonly animated: boolean;
readonly nsfw: boolean;
readonly user?: UserPartial;
}
@@ -118,7 +113,6 @@ export interface GuildSticker {
readonly description: string;
readonly tags: Array<string>;
readonly animated: boolean;
readonly nsfw: boolean;
readonly user?: UserPartial;
}
@@ -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;