invidget
invidget copied to clipboard
Add support for friend invites
Friend invites are now available via the API, and may be released soon in the client. Currently, invidget just times out, rather than properly displaying the friend invite.
ex: https://invidget.switchblade.xyz/ZdErpjfX
how it looks in the discord client
invidget would need to get the data about the user via the inviter property of the invite itself, since there is no guild. The full API data is shown below.
/api/v9/invites/ZdErpjfX
{
"code": "ZdErpjfX",
"inviter": {
"id": "921120740567314502",
"username": "neu",
"avatar": "1b9344fd45ded05c436a83db752d9701",
"avatar_decoration": null,
"discriminator": "1337",
"public_flags": 0
},
"channel": null,
"type": 2,
"expires_at": "2022-07-01T16:43:29+00:00"
}
(to make a user invite, post to /users/@me/invites
)
this may be considered as selfbotting, so not recommending it!!!
(also i may work on this as a pr if i find some time to do it, but likely not)
Hi! I'm gonna take a look this week with the new api version, I didn't knew that discord already updated it. Thanks for letting us know 🎉
PS: That would look amazing on README's or websites