Hello, I have been working on a small thing for personal use to display an icon (specifically a silver crown but that is irrelavant for the point here) for users that have the Administrator Permission in a server. For that, I modified the forceOwnerCrown with the following patch:
patches: [
{
find: ".PREMIUM_GUILD_SUBSCRIPTION_TOOLTIP",
replacement: {
match: /,isOwner:(\i),/,
replace: ",_isOwner:$1=$self.isGuildOwner(e),"
}
}
],
so that I can sort users by permission they have and apply the owner crown to anyone I like. THIS ALREADY WORKS AND IS NOT MY ISSUE. However, I can only display the owner crown and nothing else because the function that plugin modifies (isOwner()) only returns a bool on wether or not to display the crown at all (or not). My general assumption is that there is a parent function that calls isOwner() to display all the information. Does anyone have this parent function and its dependencies for me to look at since I have no idea where to find it or how to decompile and deobfuscate the Discord Source Code