feat(uhr-check): Fix uhr-check

This commit is contained in:
Michel Fedde 2025-06-30 22:49:55 +02:00
parent 05d113cccf
commit 3daceb7b77

View file

@ -135,7 +135,7 @@ export class PlaydatesCommand implements Command, AutocompleteCommand, ChatInter
const fromDateString = <string>interaction.options.get("from")?.value ?? ''; const fromDateString = <string>interaction.options.get("from")?.value ?? '';
const toDateString = <string>interaction.options.get("to")?.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( throw new UserError(
"Please do not use words like 'Uhr', since those may result in values you did not intent.", "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")}` `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")}`