small action command(s) fix
This commit is contained in:
parent
4d54dd8512
commit
7afadc15ea
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ public class ActionRegistryImpl implements ActionRegistry {
|
||||||
|
|
||||||
public List<InteractionCommandHandler> getCommands() {
|
public List<InteractionCommandHandler> getCommands() {
|
||||||
return serializerMap.values().stream()
|
return serializerMap.values().stream()
|
||||||
|
.filter(type -> type instanceof InteractionActionImpl)
|
||||||
.filter(type -> type instanceof InteractionCommandHandler)
|
.filter(type -> type instanceof InteractionCommandHandler)
|
||||||
.map(type -> (InteractionCommandHandler) type)
|
.map(type -> (InteractionCommandHandler) type)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
Loading…
Reference in a new issue