Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for friend invites #63

Open
neu-ma-tic opened this issue Jun 25, 2022 · 2 comments
Open

Add support for friend invites #63

neu-ma-tic opened this issue Jun 25, 2022 · 2 comments

Comments

@neu-ma-tic
Copy link

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.

image

ex: https://invidget.switchblade.xyz/ZdErpjfX

how it looks in the discord client

image


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!!!

@neu-ma-tic
Copy link
Author

(also i may work on this as a pr if i find some time to do it, but likely not)

@Doges
Copy link
Member

Doges commented Jun 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants