fix commands (#4437)

This commit is contained in:
theo 2026-07-23 17:49:54 +01:00 • committed by GitHub
parent 9fc0050a01
commit d524de8707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ export default definePlugin({
patches: [
// obtain BUILT_IN_COMMANDS instance
{
find: ',"tenor"',
find: ',"tableflip","unflip"',
replacement: [
{
// Matches BUILT_IN_COMMANDS. This is not exported so this is
@ -34,7 +34,7 @@ export default definePlugin({
// patch simpler
// textCommands = builtInCommands.filter(...)
match: /(?<=\w=)(\w)(\.filter\(.{0,60}tenor)/,
match: /(?<=\w=)(\w)(\.filter\(.{0,60}tableflip)/,
replace: "Vencord.Api.Commands._init($1)$2",
}
],