Skip to content

Reject past expiration dates when editing reminder duration#3502

Open
oliveman-au wants to merge 1 commit intopython-discord:mainfrom
oliveman-au:fix/reminder-edit-duration-past-date
Open

Reject past expiration dates when editing reminder duration#3502
oliveman-au wants to merge 1 commit intopython-discord:mainfrom
oliveman-au:fix/reminder-edit-duration-past-date

Conversation

@oliveman-au
Copy link
Copy Markdown

!remind edit duration accepts past dates with no validation. The bot confirms "That reminder has been edited successfully!" and then immediately fires the reminder since the expiration is already in the past.

Added a check to reject the edit if the provided expiration is before the current time, matching the expected behaviour of the original !remind new command.

@oliveman-au
Copy link
Copy Markdown
Author

reproduced - edited a reminder to expire in 1 second, bot confirmed the edit with a date in the past then immediately fired the reminder. no validation that the new expiration is in the future.

Screenshot 2026-04-26 104252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant