Register missing regex failure caption (#351)
This commit is contained in:
parent
84857313db
commit
cc7793925d
3 changed files with 14 additions and 1 deletions
|
|
@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- Fix missing caption registration for the regex caption ([#351](https://github.com/Incendo/cloud/pull/351))
|
||||
|
||||
## [1.6.2]
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -63,6 +63,10 @@ public class SimpleCaptionRegistry<C> implements FactoryDelegatingCaptionRegistr
|
|||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_UUID}
|
||||
*/
|
||||
public static final String ARGUMENT_PARSE_FAILURE_UUID = "'{input}' is not a valid UUID";
|
||||
/**
|
||||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_REGEX}
|
||||
*/
|
||||
public static final String ARGUMENT_PARSE_FAILURE_REGEX = "'{input}' does not match '{pattern}'";
|
||||
/**
|
||||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG}
|
||||
*/
|
||||
|
|
@ -123,6 +127,10 @@ public class SimpleCaptionRegistry<C> implements FactoryDelegatingCaptionRegistr
|
|||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_UUID,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_UUID
|
||||
);
|
||||
this.registerMessageFactory(
|
||||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_REGEX,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_REGEX
|
||||
);
|
||||
this.registerMessageFactory(
|
||||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ versions:
|
|||
jda: 4.2.1_257
|
||||
|
||||
# irc
|
||||
pircbotx: 83a4c22e80
|
||||
pircbotx: 12f5639c5d
|
||||
|
||||
# minecraft
|
||||
guava: 21.0-jre
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue