New endpoints and options to create, add, and remove individual or multiple target users on an invite without using a CSV.
Create Channel Invite now takes an array of target user IDs without uploading a CSV file by using target_user_ids. Update Target Users replaces an invite's entire target user list from an uploaded CSV, which is processed as an asynchronous job. Changing a single user meant rebuilding and re-uploading the whole file. These four endpoints adjust the list in place, extending the invite endpoints.
- Add Target User: Adds a single user to an invite's target users
- Remove Target User: Removes a single user from an invite's target users
- Bulk-Add Target Users: Adds multiple users, passed as a
user_idsarray of snowflakes - Bulk-Delete Target Users: Removes multiple users, passed as a
user_idsarray of snowflakes
All four require the caller to be the inviter or have the MANAGE_GUILD permission.