mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 23:38:32 +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.
|
* Create custom reasons to use in the Discord ban modal.
|
||||||
* Show a text input by default instead of the options
|
* Show a text input by default instead of the options
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
|
@ -75,12 +75,12 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "Messages.BAN_MULTIPLE_CONFIRM_TITLE",
|
find: "Messages.BAN_MULTIPLE_CONFIRM_TITLE",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /=\[[^]*?\]/,
|
match: /\[\{name:\i\.\i\.Messages\.BAN_REASON_OPTION_SPAM_ACCOUNT.+?\}\]/,
|
||||||
replace: "=$self.getReasons()"
|
replace: "$self.getReasons()"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /useState\(0\)/,
|
match: /useState\(0\)(?=.{0,100}targetUserId:)/,
|
||||||
replace: "useState($self.isOtherDefault())"
|
replace: "useState($self.isOtherDefault())$2"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue