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

feat(invite): Guest invites #6247

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elenakrittik
Copy link

@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.

@@ -348,7 +349,7 @@ A partial [guild](#DOCS_RESOURCES_GUILD/guild-object) object. Represents an Offl
| nick? | ?string | this user's guild nickname |
| 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?

docs/resources/Guild.md Outdated Show resolved Hide resolved
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
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.

4 participants