Skip to main content

Friend Invite

You can create a friend invite in discord with the API, but not the client. These will display correctly in the client as follows: Image of friend invite Image of another friend invite

POST https://discord.com/api/v9/users/@me/invites

No payloads necessary

Response

Response code: 200

PropertyTypeDescription
channelnullnull
codestringID for the invite. Can be accessed with discord.gg/{code} or discord.com/invite/{code}
created_atDateTimestamp at which the invite was created
expires_atDateTimestamp at which the invite will expire. Cannot be customized
inviterUser ObjectUser who created the invite
max_age604800Time before invite expires (in seconds). Cannot be customized
max_uses5Max amount of uses for the link. Cannot be customized
type2Unknown
usesnumberThe amount of uses the invite has