[AB-xxx] fixing not limiting custom commands for auto complete

This commit is contained in:
Sheldan
2023-09-08 00:17:43 +02:00
parent 148c10f250
commit 915eb8ced9

View File

@@ -64,6 +64,7 @@ public class GetCustomCommand extends AbstractConditionableCommand {
return customCommandService.getCustomCommandsStartingWith(input, event.getGuild())
.stream()
.map(CustomCommand::getName)
.limit(25)
.toList();
} else {
return new ArrayList<>();