This commit is contained in:
thororen1234 2024-06-21 20:05:37 -04:00
parent 65bb12c33b
commit 76746c0c4a
17 changed files with 74 additions and 548 deletions

View file

@ -38,7 +38,7 @@ const { Spinner } = proxyLazy(() => Forms as any as {
SpinnerTypes: typeof SpinnerTypes;
});
const ChannelMessage = findComponentByCodeLazy("renderSimpleAccessories)") as ComponentType<any>;
const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories");
export default definePlugin({
name: "MessageLinkTooltip",
@ -49,7 +49,7 @@ export default definePlugin({
{
find: ',className:"channelMention",children:[',
replacement: {
match: /(?<=\.jsxs\)\()(\i\.default)/,
match: /(?<=\.jsxs\)\()(\i\.\i)/,
replace: "$self.wrapComponent(arguments[0], $1)"
}
}