Fix ServerListAPI

This commit is contained in:
V 2023-05-11 02:28:12 +02:00
parent d5c35055f3
commit d1ad6c47a7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A1DC0CFB5615D905

View file

@ -32,7 +32,7 @@ export default definePlugin({
} }
}, },
{ {
find: "Messages.SERVERS", find: "Messages.SERVERS,children",
replacement: { replacement: {
match: /(Messages\.SERVERS,children:)(.+?default:return null\}\}\)\))/, match: /(Messages\.SERVERS,children:)(.+?default:return null\}\}\)\))/,
replace: "$1Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.In).concat($2)" replace: "$1Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.In).concat($2)"