aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorDziurwa <54191536+Dziurwa14@users.noreply.github.com>2023-04-12 02:33:05 +0200
committerGitHub <noreply@github.com>2023-04-12 02:33:05 +0200
commitedc96387f5988a443d8bb58fa49ebbc01d9b38b3 (patch)
treee1d7f10094559271af031a35b63eade98b38a746 /src/plugins
parent358eb6ad8eaf86fc96494f0e36216608e0023357 (diff)
downloadVencord-edc96387f5988a443d8bb58fa49ebbc01d9b38b3.tar.gz
Vencord-edc96387f5988a443d8bb58fa49ebbc01d9b38b3.tar.bz2
Vencord-edc96387f5988a443d8bb58fa49ebbc01d9b38b3.zip
Fix FriendInvites (#874)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/friendInvites.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/friendInvites.ts b/src/plugins/friendInvites.ts
index 970994a..fc59efa 100644
--- a/src/plugins/friendInvites.ts
+++ b/src/plugins/friendInvites.ts
@@ -47,12 +47,16 @@ export default definePlugin({
body: {
modified_contacts: {
[random]: [1, "", ""]
- }
+ },
+ phone_contact_methods_count: 1
}
}).then(res =>
FriendInvites.createFriendInvite({
code: res.body.invite_suggestions[0][3],
- recipient_phone_number_or_email: random
+ recipient_phone_number_or_email: random,
+ contact_visibility: 1,
+ filter_visibilities: [],
+ filtered_invite_suggestions_index: 1
})
);