aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwntiv-main <60457971+wntiv-main@users.noreply.github.com>2023-10-06 14:16:21 +1300
committerGitHub <noreply@github.com>2023-10-06 03:16:21 +0200
commit726a1b5d96eef2f32cba56a45ac51961c7f4ba07 (patch)
treec31e81169c27e5db206e2cad0b634f2f2d52a7d9 /src
parent581fe252a44d7ba24f277cc9d28abd7a8f5d6729 (diff)
downloadVencord-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.ts4
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",
}
],