diff --git a/src/plugins/betterBanReasons/README.md b/src/plugins/betterBanReasons/README.md index 296329a10..eafc32c50 100644 --- a/src/plugins/betterBanReasons/README.md +++ b/src/plugins/betterBanReasons/README.md @@ -1,2 +1,8 @@ +# BetterBanReasons + * Create custom reasons to use in the Discord ban modal. * Show a text input by default instead of the options + +![image](https://github.com/Vendicated/Vencord/assets/119569726/6227586b-43a2-4b05-9945-85995c3cb513) + +![image](https://github.com/Vendicated/Vencord/assets/119569726/4aaaf5f1-6dc4-4844-b4a9-9b23cfb739e2) diff --git a/src/plugins/betterBanReasons/index.tsx b/src/plugins/betterBanReasons/index.tsx index 2ae8516bf..2720b504c 100644 --- a/src/plugins/betterBanReasons/index.tsx +++ b/src/plugins/betterBanReasons/index.tsx @@ -75,12 +75,12 @@ export default definePlugin({ { find: "Messages.BAN_MULTIPLE_CONFIRM_TITLE", replacement: [{ - match: /=\[[^]*?\]/, - replace: "=$self.getReasons()" + match: /\[\{name:\i\.\i\.Messages\.BAN_REASON_OPTION_SPAM_ACCOUNT.+?\}\]/, + replace: "$self.getReasons()" }, { - match: /useState\(0\)/, - replace: "useState($self.isOtherDefault())" + match: /useState\(0\)(?=.{0,100}targetUserId:)/, + replace: "useState($self.isOtherDefault())$2" }] } ],