-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add replacement implementation stores for client mods that don't have specific functions #8
Conversation
src/common/Webpack.ts
Outdated
window.webpackChunkdiscord_app.push( | ||
[[Symbol()], | ||
{}, | ||
(r: { c: any; }) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, very readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's how every discord mod does it I guess
Replugged uses Zerebos (BdApi) findInTree and I just remade it. Go me :3
the red is sus
} | ||
// [key: string]: string, | ||
} = {}; | ||
for (const key in implementationStores) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much nesting
I think this is almost ready. Awaiting review now. |
tree: Tree, | ||
searchFilter: TreeFilter, | ||
args: { walkable?: string[]; ignore?: string[]; maxRecursion: number } = { maxRecursion: 100 }, | ||
): Tree | null | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an explaination on why u returing or null or undefined and not just undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, this isn't my code
oh my eyes finally can rest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only code that is worse is the code from dolibarr
what? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of time of writing (15.02.2024) the code is really messy and I probably haven't seen worse in past 2 years