Fix ValidUser, BetterFolders & MutualGroupDms

Co-authored-by: Juby210 <31005896+Juby210@users.noreply.github.com>
Co-authored-by: Amia <9750071+aamiaa@users.noreply.github.com>
This commit is contained in:
V 2023-06-22 22:35:59 +02:00
parent 92113da7c0
commit 5a0e501829
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
3 changed files with 6 additions and 5 deletions

View file

@ -36,7 +36,8 @@ function Guilds(props: {
// @ts-expect-error
const res = Vencord.Plugins.plugins.BetterFolders.Guilds(props);
const scrollerProps = res.props.children?.props?.children?.[1]?.props;
// TODO: Make this better
const scrollerProps = res.props.children?.props?.children?.props?.children?.[1]?.props;
if (scrollerProps?.children) {
const servers = scrollerProps.children.find(c => c?.props?.["aria-label"] === i18n.Messages.SERVERS);
if (servers) scrollerProps.children = servers;