fix(forceOwnerCrown): update broken patch (#1777)
This commit is contained in:
parent
e4659ed7c3
commit
34ac718705
@ -27,12 +27,12 @@ export default definePlugin({
|
|||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
// This is the logic where it decides whether to render the owner crown or not
|
// This is the logic where it decides whether to render the owner crown or not
|
||||||
find: ".renderOwner=",
|
find: ".MULTIPLE_AVATAR",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /isOwner;return null!=(\w+)?&&/g,
|
match: /(\i)=(\i)\.isOwner,/,
|
||||||
replace: "isOwner;if($self.isGuildOwner(this.props)){$1=true;}return null!=$1&&"
|
replace: "$1=$self.isGuildOwner($2),"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
isGuildOwner(props) {
|
isGuildOwner(props) {
|
||||||
// Check if channel is a Group DM, if so return false
|
// Check if channel is a Group DM, if so return false
|
||||||
|
Loading…
Reference in New Issue
Block a user