mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
Fixed regexes and readme
This commit is contained in:
parent
d7408bd486
commit
f84099ab2d
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
||||

|
||||
|
||||

|
||||
|
|
|
@ -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"
|
||||
}]
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue