|
4 | 4 | import net.dv8tion.jda.api.events.interaction.command.UserContextInteractionEvent; |
5 | 5 | import net.dv8tion.jda.api.interactions.commands.build.Commands; |
6 | 6 | import net.javadiscord.javabot.data.config.BotConfig; |
7 | | -import net.javadiscord.javabot.data.h2db.DbHelper; |
8 | 7 | import net.javadiscord.javabot.systems.moderation.warn.dao.WarnRepository; |
9 | 8 | import net.javadiscord.javabot.util.ExceptionLogger; |
10 | 9 | import net.javadiscord.javabot.util.Responses; |
|
20 | 19 | */ |
21 | 20 | public class WarnsListContext extends ContextCommand.User { |
22 | 21 | private final BotConfig botConfig; |
23 | | - private final DbHelper dbHelper; |
24 | 22 | private final ExecutorService asyncPool; |
25 | 23 | private final WarnRepository warnRepository; |
26 | 24 |
|
27 | 25 | /** |
28 | 26 | * The constructor of this class, which sets the corresponding {@link net.dv8tion.jda.api.interactions.commands.build.CommandData}. |
29 | 27 | * @param botConfig The main configuration of the bot |
30 | | - * @param dbHelper An object managing databse operations |
31 | 28 | * @param asyncPool The main thread pool for asynchronous operations |
32 | 29 | * @param warnRepository DAO for interacting with the set of {@link net.javadiscord.javabot.systems.moderation.warn.model.Warn} objects. |
33 | 30 | */ |
34 | | - public WarnsListContext(BotConfig botConfig, DbHelper dbHelper, ExecutorService asyncPool, WarnRepository warnRepository) { |
| 31 | + public WarnsListContext(BotConfig botConfig, ExecutorService asyncPool, WarnRepository warnRepository) { |
35 | 32 | this.botConfig = botConfig; |
36 | | - this.dbHelper = dbHelper; |
37 | 33 | this.asyncPool = asyncPool; |
38 | 34 | this.warnRepository = warnRepository; |
39 | 35 | setCommandData(Commands.user("Show Warns") |
|
0 commit comments