mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-09-16 19:34:14 +00:00
[AB-xxx] fixing not limiting custom commands for auto complete
This commit is contained in:
@@ -64,6 +64,7 @@ public class GetCustomCommand extends AbstractConditionableCommand {
|
|||||||
return customCommandService.getCustomCommandsStartingWith(input, event.getGuild())
|
return customCommandService.getCustomCommandsStartingWith(input, event.getGuild())
|
||||||
.stream()
|
.stream()
|
||||||
.map(CustomCommand::getName)
|
.map(CustomCommand::getName)
|
||||||
|
.limit(25)
|
||||||
.toList();
|
.toList();
|
||||||
} else {
|
} else {
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user