Skip to content

Conversation

@elenakrittik
Copy link
Contributor

@elenakrittik elenakrittik commented Jun 22, 2023

Waiting for article.

Note: bots cannot create guest invites (for now, at least) unless they fake X-Super-Properties. If you attempt to pass flags in the payload, you'd get the GUILD_INVITE_CANNOT_CREATE_GUEST_INVITE (code 50035) error even if the server has necessary features.

| avatar? | ?string | the member's [guild avatar hash](#DOCS_REFERENCE/image-formatting) |
| roles | array of snowflakes | array of [role](#DOCS_TOPICS_PERMISSIONS/role-object) object ids |
| joined_at | ISO8601 timestamp | when the user joined the guild |
| joined_at | ?ISO8601 timestamp | when the user joined the guild |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change that will cause issues for bots, shouldn't this be part of a new api version?

Co-authored-by: Ruairi O hUanachain <[email protected]>
@hohoaisan
Copy link

hohoaisan commented Apr 21, 2024

Need to build a Bot that can create Guest Invite, but seem the api blocked for Bot user 👀 Hope it will be documented soon:
Edit:

unless they fake X-Super-Propertie

Oh I figured it out, thanks!!

lukellmann pushed a commit to kordlib/kord that referenced this pull request Jul 6, 2024
Discord started sending null values for joined_at, probably due to
discord/discord-api-docs#6247
@advaith1 advaith1 marked this pull request as ready for review June 30, 2025 20:50
@advaith1 advaith1 requested a review from a team as a code owner June 30, 2025 20:50
@advaith1 advaith1 requested review from abe-discord and removed request for a team June 30, 2025 20:50
@advaith1 advaith1 merged commit 3bd60ee into discord:main Jun 30, 2025
4 checks passed
mazylol pushed a commit to mazylol/discord-api-docs that referenced this pull request Jul 3, 2025
* feat(invite): Guest invites

* Apply suggestion

Co-authored-by: Ruairi O hUanachain <[email protected]>

* update flags docs

* fix link

* actually fix ci this time

---------

Co-authored-by: Ruairi O hUanachain <[email protected]>
Co-authored-by: advaith <[email protected]>
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

Successfully merging this pull request may close these issues.

5 participants