mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 21:53:22 +00:00
[AB-xxx] adding support to have a different template for user command descriptions
enabling user command for currency conversion command
This commit is contained in:
@@ -78,7 +78,10 @@ public class SlashCommandServiceBean implements SlashCommandService {
|
||||
String internalCommandName = commandConfiguration.getName();
|
||||
if(!isTemplated) {
|
||||
description = commandConfiguration.getDescription();
|
||||
} else {
|
||||
} else if(commandConfiguration.isUserInstallable() && userCommandsOnly) {
|
||||
description = templateService.renderSimpleTemplate(internalCommandName + "_description_user", serverId);
|
||||
}
|
||||
else {
|
||||
description = templateService.renderSimpleTemplate(internalCommandName + "_description", serverId);
|
||||
}
|
||||
String rootName = userCommandsOnly ? StringUtils.defaultString(slashConfig.getUserSlashCompatibleRootName(), slashConfig.getSlashCompatibleRootName()) : slashConfig.getSlashCompatibleRootName();
|
||||
|
||||
Reference in New Issue
Block a user