mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
fix: CommandsAPI
This commit is contained in:
parent
9895540943
commit
892a79b2a7
2 changed files with 5 additions and 5 deletions
|
@ -44,8 +44,8 @@ export default definePlugin({
|
|||
find: "Unexpected value for option",
|
||||
replacement: {
|
||||
// return [2, cmd.execute(args, ctx)]
|
||||
match: /,(.{1,2})\.execute\((.{1,2}),(.{1,2})\)]/,
|
||||
replace: (_, cmd, args, ctx) => `,Vencord.Api.Commands._handleCommand(${cmd}, ${args}, ${ctx})]`
|
||||
match: /,(\i)\.execute\((\i),(\i)\)/,
|
||||
replace: (_, cmd, args, ctx) => `,Vencord.Api.Commands._handleCommand(${cmd}, ${args}, ${ctx})`
|
||||
}
|
||||
},
|
||||
// Show plugin name instead of "Built-In"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue