diff options
author | wntiv-main <60457971+wntiv-main@users.noreply.github.com> | 2023-10-06 14:16:21 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 03:16:21 +0200 |
commit | 726a1b5d96eef2f32cba56a45ac51961c7f4ba07 (patch) | |
tree | c31e81169c27e5db206e2cad0b634f2f2d52a7d9 /src | |
parent | 581fe252a44d7ba24f277cc9d28abd7a8f5d6729 (diff) | |
download | Vencord-726a1b5d96eef2f32cba56a45ac51961c7f4ba07.tar.gz Vencord-726a1b5d96eef2f32cba56a45ac51961c7f4ba07.tar.bz2 Vencord-726a1b5d96eef2f32cba56a45ac51961c7f4ba07.zip |
Fix command API (#1776)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/_api/commands.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/_api/commands.ts b/src/plugins/_api/commands.ts index 2197b30..b7d6ef9 100644 --- a/src/plugins/_api/commands.ts +++ b/src/plugins/_api/commands.ts @@ -26,7 +26,7 @@ export default definePlugin({ patches: [ // obtain BUILT_IN_COMMANDS instance { - find: '"giphy","tenor"', + find: ',"tenor"', 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,30}giphy)/, + match: /(?<=\w=)(\w)(\.filter\(.{0,60}tenor)/, replace: "Vencord.Api.Commands._init($1)$2", } ], |