This pull request addresses Issue #6274 by incorporating the suggested fix from the discussion in the provided GitHub issue comment. The fix involves adding a break statement to halt the iteration once a valid time duration is found. This enhancement optimizes the time duration validation process within the specified functionality, improving efficiency and accuracy.
Implemented the fix as suggested in https://github.com/Cog-Creators/Red-DiscordBot/issues/6274#issuecomment-1837224077.
Description of the changes
This pull request addresses Issue #6274 by incorporating the suggested fix from the discussion in the provided GitHub issue comment. The fix involves adding a
break
statement to halt the iteration once a valid time duration is found. This enhancement optimizes the time duration validation process within the specified functionality, improving efficiency and accuracy.Have the changes in this PR been tested?
No