[AB-53] adding economy related commands

adding runtime exception to root command handling
adding simple custom command module
disabling slash command for show emote the utility is not given (the bot cannot show any emotes from servers its not in)
fixing post target setup not allowing threads
fixing post targets not supporting threads
fixing interactions not considering the actual amount of embeds
fixing some cases for events which are not in a guild
This commit is contained in:
Sheldan
2022-07-21 00:43:04 +02:00
parent 68cae74819
commit 9954515db0
81 changed files with 3717 additions and 108 deletions

View File

@@ -44,7 +44,7 @@ import java.util.concurrent.CompletableFuture;
public class LeaderBoardCommand extends AbstractConditionableCommand {
public static final String LEADER_BOARD_POST_EMBED_TEMPLATE = "leaderboard_post";
private static final String LEADERBOARD_PARAMTER = "leaderboard";
private static final String LEDERBOARD_COMMAND_NAME = "leaderboard";
private static final String PAGE_PARAMETER = "page";
@Autowired
private AUserExperienceService userExperienceService;
@@ -137,12 +137,12 @@ public class LeaderBoardCommand extends AbstractConditionableCommand {
.builder()
.enabled(true)
.rootCommandName(ExperienceSlashCommandNames.EXPERIENCE)
.commandName(LEADERBOARD_PARAMTER)
.commandName(LEDERBOARD_COMMAND_NAME)
.build();
return CommandConfiguration.builder()
.name(LEADERBOARD_PARAMTER)
.name(LEDERBOARD_COMMAND_NAME)
.module(ExperienceModuleDefinition.EXPERIENCE)
.templated(true)
.async(true)