fix action commands, ughh

This commit is contained in:
D3v1s0m 2024-06-25 01:16:03 +05:30 committed by bridge
parent 4fb964fa60
commit 4db56a2b20

@ -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());