Sign in

Create channel invite

documented

Create a new invite for the channel.

POST /channels/{channel.id}/invitesChannelsno implementation yet0 runs

Input

channel_id*
Channel ID
Discord channel ID
audit_reason
Audit Log Reason
Reason for this invite creation (optional)
max_age
Invite max_age
Seconds until expiry (0 for never)
max_uses
Invite max_uses
Maximum uses (0 for unlimited)
temporary
Temporary invite
Whether invite grants temporary membership
unique
Unique invite
If true, create a new unique invite
target_type
Target type
0: none, 1: stream, 2: embedded application
target_user_id
Target user ID
User ID if target_type is 1
target_application_id
Target application ID
Application ID if target_type is 2
payload_json
Payload JSON
JSON-encoded non-file params
role_ids
Role IDs
Array of role IDs to grant on join
Calls Discord as you (your API key is your account); keychains.dev holds the credentials.