diff --git a/backend/src/plugins/Reminders/commands/RemindersDeleteCmd.ts b/backend/src/plugins/Reminders/commands/RemindersDeleteCmd.ts index e31677b4..6196d198 100644 --- a/backend/src/plugins/Reminders/commands/RemindersDeleteCmd.ts +++ b/backend/src/plugins/Reminders/commands/RemindersDeleteCmd.ts @@ -16,7 +16,7 @@ export const RemindersDeleteCmd = remindersCommand({ reminders.sort(sorter("remind_at")); const lastNum = reminders.length + 1; - if (args.num > lastNum || args.num < 0) { + if (args.num > lastNum || args.num <= 0) { sendErrorMessage(pluginData, msg.channel, "Unknown reminder"); return; }