Skip to content

Commit 33840dc

Browse files
authored
Remove deprecations (#261)
* Removed deprecated declarations * jda-ktx: Removed deprecated migration helpers * jda-ktx: Removed deprecated `retrieveThreadChannelOrNull` * Remove CHANGELOG.md * Removed deprecated behavior * Removed unused dependencies from version catalog * Removed remaining suppressions
1 parent 24b5b83 commit 33840dc

File tree

101 files changed

+42
-2727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+42
-2727
lines changed

BotCommands-core/src/main/java/io/github/freya022/botcommands/api/commands/text/HelpBuilderConsumer.java

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import io.github.freya022.botcommands.api.core.service.annotations.InterfacedService;
55
import net.dv8tion.jda.api.EmbedBuilder;
66
import org.jspecify.annotations.NullMarked;
7-
import org.jspecify.annotations.Nullable;
8-
9-
import java.util.Objects;
107

118
/**
129
* A consumer that's called when a help embed is about to be sent.
@@ -22,42 +19,18 @@
2219
@NullMarked
2320
@InterfacedService(acceptMultiple = false)
2421
public interface HelpBuilderConsumer {
25-
/**
26-
* The function called when building a help embed
27-
*
28-
* @param builder The {@link EmbedBuilder} to fill / override
29-
* @param isGlobal {@code true} if the embed is showing all the commands,
30-
* {@code false} if the embed is for a specific command
31-
* @param commandInfo The text command to retrieve the help from
32-
* <br>Will be null if {@code isGlobal} is {@code true}
33-
*
34-
* @deprecated Replaced by {@link #acceptGlobal(EmbedBuilder)} and {@link #acceptCommand(EmbedBuilder, TextCommandInfo)}
35-
*/
36-
@Deprecated(forRemoval = true)
37-
default void accept(EmbedBuilder builder, boolean isGlobal, @Nullable TextCommandInfo commandInfo) {
38-
if (isGlobal) {
39-
acceptGlobal(builder);
40-
} else {
41-
acceptCommand(builder, Objects.requireNonNull(commandInfo));
42-
}
43-
}
44-
4522
/**
4623
* Customizes the given {@link EmbedBuilder} when showing help for all commands.
4724
*
4825
* @param builder The embed to customize
4926
*/
50-
default void acceptGlobal(EmbedBuilder builder) {
51-
accept(builder, true, null);
52-
}
27+
void acceptGlobal(EmbedBuilder builder);
5328

5429
/**
5530
* Customizes the given {@link EmbedBuilder} when showing help for a specific command.
5631
*
5732
* @param builder The embed to customize
5833
* @param commandInfo The command to customize the embed for
5934
*/
60-
default void acceptCommand(EmbedBuilder builder, TextCommandInfo commandInfo) {
61-
accept(builder, false, commandInfo);
62-
}
35+
void acceptCommand(EmbedBuilder builder, TextCommandInfo commandInfo);
6336
}

BotCommands-core/src/main/java/io/github/freya022/botcommands/api/commands/text/TextCommand.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

BotCommands-core/src/main/java/io/github/freya022/botcommands/api/localization/DefaultMessages.java

Lines changed: 0 additions & 218 deletions
This file was deleted.

BotCommands-core/src/main/kotlin/io/github/freya022/botcommands/api/commands/application/ApplicationCommand.kt

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)