[Mutes/Core] RelativeDeltaWithReason #5402

Closed
Flame442 wants to merge 22 commits from Flame442/mutes-5244 into V3/develop
Flame442 commented 2021-10-17 01:58:20 +02:00 (Migrated from github.com)

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. Swaps mutes to use redbot.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.

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. Swaps `mutes` to use `redbot.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.
TrustyJAID (Migrated from github.com) reviewed 2021-10-17 01:58:20 +02:00
flaree commented 2023-03-25 16:30:34 +01:00 (Migrated from github.com)

Can you solve the 2 conflicts when you get a chance?

Can you solve the 2 conflicts when you get a chance?
Flame442 commented 2024-01-02 01:38:36 +01:00 (Migrated from github.com)

Conflicts have been resolved

Conflicts have been resolved
Owner

Ich habe den PR geprüft und lasse ihn offen. Er führt neue öffentliche APIs in redbot.core.commands.converter und chat_formatting ein (parse_*_with_reason, humanize_relativedelta), deren Namen und Signaturen laut Beschreibung noch nicht final sind. Nach dem Merge wären sie durch die Developer Guarantees fest. Die Mutes-Seite konfligiert außerdem mit dem aktuellen Code. Sobald die API-Form entschieden ist, lässt er sich portieren.


Generated by Claude Code

Ich habe den PR geprüft und lasse ihn offen. Er führt neue öffentliche APIs in `redbot.core.commands.converter` und `chat_formatting` ein (`parse_*_with_reason`, `humanize_relativedelta`), deren Namen und Signaturen laut Beschreibung noch nicht final sind. Nach dem Merge wären sie durch die Developer Guarantees fest. Die Mutes-Seite konfligiert außerdem mit dem aktuellen Code. Sobald die API-Form entschieden ist, lässt er sich portieren. --- _Generated by [Claude Code](https://claude.ai/code)_
Owner

Auf Wunsch des Repo-Owners geschlossen; die Gründe stehen im Kommentar oben. Der PR kann jederzeit wieder geöffnet oder neu eingereicht werden.


Generated by Claude Code

Auf Wunsch des Repo-Owners geschlossen; die Gründe stehen im Kommentar oben. Der PR kann jederzeit wieder geöffnet oder neu eingereicht werden. --- _Generated by [Claude Code](https://claude.ai/code)_
Mrcoolgamer11 closed this pull request 2026-11-22 15:56:33 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5402
No description provided.