Community Invites#8077
Conversation
|
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 | | |
There was a problem hiding this comment.
why does this field expect a file rather than an array of snowflakes like in other places?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Maybe because the array of snowflakes can be large?
After my answer, someone joined my server and started insulting me for my answer
* Add community invites documentation * Add permission requirements * Clarify file behavior
Changes and updates to invite API documentation to allow for granting roles and specifying which users can accept an invite