feat(uhr-check): Fix uhr-check
This commit is contained in:
parent
05d113cccf
commit
3daceb7b77
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ export class PlaydatesCommand implements Command, AutocompleteCommand, ChatInter
|
|||
const fromDateString = <string>interaction.options.get("from")?.value ?? '';
|
||||
const toDateString = <string>interaction.options.get("to")?.value ?? '';
|
||||
|
||||
if (!this.checkDateString(fromDateString) || !this.checkDateString(toDateString)) {
|
||||
if (this.checkDateString(fromDateString) || this.checkDateString(toDateString)) {
|
||||
throw new UserError(
|
||||
"Please do not use words like 'Uhr', since those may result in values you did not intent.",
|
||||
`Write the time out completely. Either in military time (15:00) or in the 12-hour format (3pm). For more valid formats check this ${hyperlink("list", "https://github.com/kensnyder/any-date-parser?tab=readme-ov-file#exhaustive-list-of-date-formats")}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue