Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.63k stars 2.28k forks source link

Fix potential API compatibility issue in parse_timedelta() #6355

Closed Jackenmen closed 2 months ago

Jackenmen commented 2 months ago

Description of the changes

Fixes a potential issue that users of parse_timedelta() could have encountered after updating to Red 3.5.9, if they explicitly passed None to the minimum keyword argument which with the recent changes (#6349) could result in accepting negative timedeltas unexpectedly.

Have the changes in this PR been tested?

No