Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ApplicationEmoji#APPLICATION_EMOJI_CAP -> MAX_APPLICATION_EMOJIS #2791

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/net/dv8tion/jda/api/JDA.java
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ default List<RichCustomEmoji> getEmojisByName(@Nonnull String name, boolean igno
/**
* Creates a new {@link ApplicationEmoji} for this bot.
*
* <p>Note that the bot is limited to {@value ApplicationEmoji#APPLICATION_EMOJI_CAP} Application Emojis (normal and animated).
* <p>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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*
Expand Down
Loading