mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
refactor: update plugins to use $self
(#478)
Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
parent
1d995e58f5
commit
d95be1acba
19 changed files with 26 additions and 26 deletions
|
@ -30,7 +30,7 @@ export default definePlugin({
|
|||
find: ".renderOwner=",
|
||||
replacement: {
|
||||
match: /isOwner;return null!=(\w+)?&&/g,
|
||||
replace: "isOwner;if(Vencord.Plugins.plugins.ForceOwnerCrown.isGuildOwner(this.props)){$1=true;}return null!=$1&&"
|
||||
replace: "isOwner;if($self.isGuildOwner(this.props)){$1=true;}return null!=$1&&"
|
||||
}
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue