-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mutes/Core] RelativeDeltaWithReason #5402
Open
Flame442
wants to merge
22
commits into
Cog-Creators:V3/develop
Choose a base branch
from
Flame442:mutes-5244
base: V3/develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+324
−89
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flame442
added
Type: Feature
New feature or request.
Category: Core - API - Commands Package
This is related to the `redbot.core.commands` package or `redbot.core.checks` module.
Category: Core - API - Utils Package
This is related to stuff in `redbot.core.utils`
Category: Cogs - Mutes
This is related to the Mutes cog.
labels
Oct 16, 2021
Can you solve the 2 conflicts when you get a chance? |
Conflicts have been resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Category: Cogs - Mutes
This is related to the Mutes cog.
Category: Core - API - Commands Package
This is related to the `redbot.core.commands` package or `redbot.core.checks` module.
Category: Core - API - Utils Package
This is related to stuff in `redbot.core.utils`
Type: Feature
New feature or request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR takes the converter from the mutes cog which converts a string into a timedelta and a string reason and adds it to
redbot.core.commands.converter
. Also implements a version of this converter which produces a relativedelta and a string reason, as well as functions which can be used to just do the conversion process on an arbitrary string. Swapsmutes
to useredbot.core.commands.converter
converters, including these.Specific implementation details are subject to change, including typehints and method names. Some things I really just did not understand are omitted. This PR is untested beyond ensuring it works under the most expected of situations.
This PR serves to satisfy the
mutes
part of #5244. This PR implements the changes to the regex present in #5393 in new regex strings, however does not modify the existing strings in an attempt to not conflict with that PR.