X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/33c4e17c0d295d437438f6e1d8fbfd1ae6640f3c..HEAD:/src/main/java/org/asamk/signal/commands/Commands.java diff --git a/src/main/java/org/asamk/signal/commands/Commands.java b/src/main/java/org/asamk/signal/commands/Commands.java index 719ba132..51620a7f 100644 --- a/src/main/java/org/asamk/signal/commands/Commands.java +++ b/src/main/java/org/asamk/signal/commands/Commands.java @@ -17,6 +17,8 @@ public class Commands { addCommand(new FinishChangeNumberCommand()); addCommand(new FinishLinkCommand()); addCommand(new GetAttachmentCommand()); + addCommand(new GetAvatarCommand()); + addCommand(new GetStickerCommand()); addCommand(new GetUserStatusCommand()); addCommand(new AddStickerPackCommand()); addCommand(new JoinGroupCommand()); @@ -37,6 +39,7 @@ public class Commands { addCommand(new RemoteDeleteCommand()); addCommand(new SendCommand()); addCommand(new SendContactsCommand()); + addCommand(new SendMessageRequestResponseCommand()); addCommand(new SendPaymentNotificationCommand()); addCommand(new SendReactionCommand()); addCommand(new SendReceiptCommand()); @@ -72,8 +75,8 @@ public class Commands { private static void addCommand(Command command) { commands.put(command.getName(), command); - if (command instanceof CliCommand) { - commandSubparserAttacher.put(command.getName(), ((CliCommand) command)::attachToSubparser); + if (command instanceof CliCommand cliCommand) { + commandSubparserAttacher.put(command.getName(), cliCommand::attachToSubparser); } } }