Closed ToothyDev closed 1 year ago
The punishment will also revert back to [object Object] when simply using /bad-word edit without any arguments except the ID of course
When editing a badword's type, the modal / popup that appears will not say "regex" and fill in /regex/flags, but will still show e.g. "Trigger" for when it was a text.
If I understand that correctly, you want ModBot to automatically convert your trigger to a regex when you pick the regex option?
No, but the modal should say "Regex" because that's what you're now supposed to put there, since you're changing it to regex
In the title or where?
The title of the text field where it says trigger in my screenshot should then be updated to regex, yes. Basically should look the same as if you created a regex badword from scratch, because on my screenshot it looks like you're creating a normal badword
The title of the Text field (1) also doesn't say regex when you create a bad word. It is however displayed in the modal title (2).
I think automatically converting the trigger to the matching regex would be a great idea tho
Oh yea my bad then, but an autoconversion would be nice too yes. But the prefilled text should also be changed before currently it isn't last time I tested
What do you mean with that?
The gray placeholder
That is already changed according to the new type
My bad, I probably did something wrong when testing it in the first place
When editing a badword's type, the modal / popup that appears will not say "regex" and fill in /regex/flags, but will still show e.g. "Trigger" for when it was a text. Creating the badword like this:
and then editing it while changing the type to e.g. regex, it will still show it like this
Also, creating a punishment without any punishment selected yields [object Object]