From 0239bb0aac97513006be513b5c967c9b53294be9 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 22 Nov 2022 22:42:22 +0100 Subject: Commands: Show plugin name instead of 'Built-In' --- src/plugins/apiCommands.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/plugins/apiCommands.ts b/src/plugins/apiCommands.ts index 7b08b8a..4136deb 100644 --- a/src/plugins/apiCommands.ts +++ b/src/plugins/apiCommands.ts @@ -47,6 +47,15 @@ export default definePlugin({ match: /,(.{1,2})\.execute\((.{1,2}),(.{1,2})\)]/, replace: (_, cmd, args, ctx) => `,Vencord.Api.Commands._handleCommand(${cmd}, ${args}, ${ctx})]` } + }, + // Show plugin name instead of "Built-In" + { + find: "().source,children", + replacement: { + // ...children: p?.name + match: /(?<=:(.{1,3})\.displayDescription\}.{0,200}\(\)\.source,children:)[^}]+/, + replace: "$1.plugin||($&)" + } } ], }); -- cgit