Skip to content

Community Invites#8077

Merged
anthonydiscord merged 3 commits into
mainfrom
anthony/community-invites
Jan 13, 2026
Merged

Community Invites#8077
anthonydiscord merged 3 commits into
mainfrom
anthony/community-invites

Conversation

@anthonydiscord

Copy link
Copy Markdown
Contributor

Changes and updates to invite API documentation to allow for granting roles and specifying which users can accept an invite

@anthonydiscord
anthonydiscord requested a review from a team as a code owner January 13, 2026 18:10
@anthonydiscord
anthonydiscord requested review from abe-discord and colinloretz and removed request for a team and abe-discord January 13, 2026 18:10
@vakiliner

Copy link
Copy Markdown
Contributor

It would be cool if it was possible to edit roles for existing invites

| target_type | integer | the [type of target](/docs/resources/invite#invite-object-invite-target-types) for this voice channel invite | |
| target_user_id | snowflake | the id of the user whose stream to display for this invite, required if `target_type` is 1, the user must be streaming in the channel | |
| target_application_id | snowflake | the id of the embedded application to open for this invite, required if `target_type` is 2, the application must have the `EMBEDDED` flag | |
| target_users_file?\* | file | a csv file with a single column of user IDs for all the users able to accept this invite | |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why does this field expect a file rather than an array of snowflakes like in other places?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why does this field expect a file rather than an array of snowflakes like in other places?

Maybe because the array of snowflakes can be large?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The original use-case was for large batches of users so file upload made the most sense. Sounds like allowing for smaller batches of users as an array makes sense so I'll pass that feedback back to the team!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe because the array of snowflakes can be large?

After my answer, someone joined my server and started insulting me for my answer

@anthonydiscord
anthonydiscord merged commit e6b6aa6 into main Jan 13, 2026
5 checks passed
@anthonydiscord
anthonydiscord deleted the anthony/community-invites branch January 13, 2026 19:05
valzargaming added a commit to discord-php/DiscordPHP-Http that referenced this pull request Jan 13, 2026
valzargaming added a commit to discord-php/DiscordPHP that referenced this pull request Jan 13, 2026
DonovanDMC added a commit to OceanicJS/Oceanic that referenced this pull request Mar 6, 2026
xavier-archlinux-tw pushed a commit to xavier-archlinux-tw/discord-api-docs that referenced this pull request Jul 14, 2026
* Add community invites documentation

* Add permission requirements

* Clarify file behavior
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