Skip to content

[Alias]: Fix Command Parsing with JSON data.#6719

Open
Evanroby wants to merge 2 commits intoCog-Creators:V3/developfrom
Evanroby:alias-json
Open

[Alias]: Fix Command Parsing with JSON data.#6719
Evanroby wants to merge 2 commits intoCog-Creators:V3/developfrom
Evanroby:alias-json

Conversation

@Evanroby
Copy link
Copy Markdown
Contributor

Description of the changes

Fixes #6524

Been a while I had this in head, and locally on a cog directory, so I am finally decided to release the PR

Fixes a KeyError when an alias command contains JSON-like {} content. Replaced _TrackingFormatter / str.format() with a regex substitution that only targets numeric placeholders like {0}, {1}

Have the changes in this PR been tested?

Yes

@github-actions github-actions Bot added the Category: Cogs - Alias This is related to the Alias cog. label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Cogs - Alias This is related to the Alias cog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alias] Command Parsing with JSON {} data

1 participant