upstream #1
1 changed files with 0 additions and 1 deletions
|
@ -38,7 +38,6 @@ 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