We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8249152 commit c82c500Copy full SHA for c82c500
docs/core/index.md
@@ -637,6 +637,12 @@ A parser can fail when the input does not match the expectations.
637
The command manager will turn the failure into a command syntax exception which can then be displayed to the
638
sender, informing them about what went wrong.
639
640
+<!-- prettier-ignore -->
641
+!!! note
642
+ Cloud v2 does not require you to peek before consuming from the `CommandInput`. The input is defensively copied
643
+ before being passed to the parser, unlike in Cloud v1. You may still want to peek in order to determine _how_
644
+ to parse the input, but it is no longer considered incorrect not to do so.
645
+
646
The recommended way of parsing an argument is to:
647
648
1. Peek the command input.
0 commit comments