Deprecated API
Contents
-
Deprecated Classes
-
Deprecated Fields
-
Deprecated MethodsMethodDescriptionReplaced with
ActionComponent.getCustomId()
Replaced withButton.withCustomId(String)
Replaced withActionRow.getMaxAllowed(Component.Type)
Replaced withSelectMenu.Builder.getCustomId()
Replaced withSelectMenu.Builder.setCustomId(String)
Replaced withTextInput.Builder.getCustomId()
Can be replaced withgetComponentTree().findAll(ActionRow.class)
Can be replaced withgetComponentTree().findAll(Button.class)
Can be replaced withgetComponentTree().findAll(Button.class, button -> id.equals(button.getCustomId())
, usage is discouraged since content displayed to an user can change, prefer using data owned by the bot, for example, in custom IDs or stored by the botReplaced withMessage.getInteractionMetadata()
Replaced withModalMapping.getCustomId()