aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2023-10-08 04:20:36 +0200
committerGitHub <noreply@github.com>2023-10-07 23:20:36 -0300
commit34ac71870529f6fda5abcd98af664012b4f44873 (patch)
tree382bc8100916a62874e3676fde4d960e65fcaac6 /src/plugins
parente4659ed7c3480750df88c182f8bcf6660f98c2c3 (diff)
downloadVencord-34ac71870529f6fda5abcd98af664012b4f44873.tar.gz
Vencord-34ac71870529f6fda5abcd98af664012b4f44873.tar.bz2
Vencord-34ac71870529f6fda5abcd98af664012b4f44873.zip
fix(forceOwnerCrown): update broken patch (#1777)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/forceOwnerCrown/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/forceOwnerCrown/index.ts b/src/plugins/forceOwnerCrown/index.ts
index 3122410..5fa63f0 100644
--- a/src/plugins/forceOwnerCrown/index.ts
+++ b/src/plugins/forceOwnerCrown/index.ts
@@ -27,12 +27,12 @@ export default definePlugin({
patches: [
{
// This is the logic where it decides whether to render the owner crown or not
- find: ".renderOwner=",
+ find: ".MULTIPLE_AVATAR",
replacement: {
- match: /isOwner;return null!=(\w+)?&&/g,
- replace: "isOwner;if($self.isGuildOwner(this.props)){$1=true;}return null!=$1&&"
+ match: /(\i)=(\i)\.isOwner,/,
+ replace: "$1=$self.isGuildOwner($2),"
}
- },
+ }
],
isGuildOwner(props) {
// Check if channel is a Group DM, if so return false