From 59c80384e7892dfcae64bddb6c625a3583879ebf Mon Sep 17 00:00:00 2001 From: freya02 <41875020+freya022@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:41:46 +0100 Subject: [PATCH] Rename ApplicationEmoji#APPLICATION_EMOJI_CAP -> MAX_APPLICATION_EMOJIS --- src/main/java/net/dv8tion/jda/api/JDA.java | 2 +- .../jda/api/entities/emoji/ApplicationEmoji.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/dv8tion/jda/api/JDA.java b/src/main/java/net/dv8tion/jda/api/JDA.java index 7f50e3b45c..e3c3416076 100644 --- a/src/main/java/net/dv8tion/jda/api/JDA.java +++ b/src/main/java/net/dv8tion/jda/api/JDA.java @@ -1755,7 +1755,7 @@ default List getEmojisByName(@Nonnull String name, boolean igno /** * Creates a new {@link ApplicationEmoji} for this bot. * - *

Note that the bot is limited to {@value ApplicationEmoji#APPLICATION_EMOJI_CAP} Application Emojis (normal and animated). + *

Note that the bot is limited to {@value ApplicationEmoji#MAX_APPLICATION_EMOJIS} Application Emojis (normal and animated). * * @param name * The name for the new emoji (2-{@value CustomEmoji#EMOJI_NAME_MAX_LENGTH} characters) diff --git a/src/main/java/net/dv8tion/jda/api/entities/emoji/ApplicationEmoji.java b/src/main/java/net/dv8tion/jda/api/entities/emoji/ApplicationEmoji.java index a97743f621..1c92639cc0 100644 --- a/src/main/java/net/dv8tion/jda/api/entities/emoji/ApplicationEmoji.java +++ b/src/main/java/net/dv8tion/jda/api/entities/emoji/ApplicationEmoji.java @@ -16,6 +16,7 @@ package net.dv8tion.jda.api.entities.emoji; +import net.dv8tion.jda.annotations.ReplaceWith; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.entities.Icon; import net.dv8tion.jda.api.entities.User; @@ -38,8 +39,18 @@ */ public interface ApplicationEmoji extends CustomEmoji { + /** + * @deprecated Replaced with {@link #MAX_APPLICATION_EMOJIS} + */ + @Deprecated + @ReplaceWith("MAX_APPLICATION_EMOJIS") int APPLICATION_EMOJI_CAP = 2000; + /** + * Maximum number of emojis that can be registered on an application. + */ + int MAX_APPLICATION_EMOJIS = 2000; + /** * The {@link net.dv8tion.jda.api.JDA JDA} instance of this emoji *