1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-25 16:56:23 +00:00

Fix RelationShipNotifier

This commit is contained in:
Vendicated 2023-10-25 23:50:19 +02:00 committed by Luna
parent 7d8c5c4ea5
commit 80f45cf3bc

View file

@ -31,23 +31,23 @@ export default definePlugin({
patches: [
{
find: "removeRelationship:function(",
find: "removeRelationship:(",
replacement: {
match: /(removeRelationship:function\((\i),\i,\i\){)/,
replace: "$1$self.removeFriend($2);"
match: /(removeRelationship:\((\i),\i,\i\)=>)/,
replace: "$1($self.removeFriend($2),0)||"
}
},
{
find: "leaveGuild:function(",
find: "async leaveGuild(",
replacement: {
match: /(leaveGuild:function\((\i)\){)/,
match: /(leaveGuild\((\i)\){)/,
replace: "$1$self.removeGuild($2);"
}
},
{
find: "closePrivateChannel:function(",
find: "},closePrivateChannel(",
replacement: {
match: /(closePrivateChannel:function\((\i)\){)/,
match: /(closePrivateChannel\((\i)\){)/,
replace: "$1$self.removeGroup($2);"
}
}