From 3daceb7b77cc425b5af894cb1fc4665c18f76547 Mon Sep 17 00:00:00 2001 From: Michel Fedde Date: Mon, 30 Jun 2025 22:49:55 +0200 Subject: [PATCH] feat(uhr-check): Fix uhr-check --- source/Discord/Commands/Playdates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Discord/Commands/Playdates.ts b/source/Discord/Commands/Playdates.ts index a445d7c..47bd735 100644 --- a/source/Discord/Commands/Playdates.ts +++ b/source/Discord/Commands/Playdates.ts @@ -135,7 +135,7 @@ export class PlaydatesCommand implements Command, AutocompleteCommand, ChatInter const fromDateString = interaction.options.get("from")?.value ?? ''; const toDateString = 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")}`