api

post/api/channels/{channel_id}/invites/

Path parameters

channel_idstring required

channel_id

Request body

target_user_idstring
target_typestring
validatestring
max_ageinteger
max_usesinteger
temporaryboolean
uniqueboolean
target_userstring
target_user_typeinteger
flagsinteger

Response

codestring required
temporaryboolean required
usesinteger required
max_usesinteger required
max_ageinteger required
created_atstring date-time required
expires_atstring date-time
guild_idstring required
channel_idstring required
inviter_idstring
target_user_idstring required
target_userstring
target_user_typeinteger
vanity_urlboolean
flagsinteger required

Changes

Changed in 2 of the 62 revisions of this API.123

  • 9d1008c46d60122See the full diff
    • the response property inviter/settings/friend_source_flags/all became optional for the status 201

      response-property-became-optional

    • added the new darker enum value to the inviter/settings/theme response property for the response status 201

      response-property-enum-value-added

    • added the new midnight enum value to the inviter/settings/theme response property for the response status 201

      response-property-enum-value-added

    • added the optional property inviter/settings/friend_source_flags/mutual_friends to the response with the 201 status

      response-optional-property-added

    • added the optional property inviter/settings/friend_source_flags/mutual_guilds to the response with the 201 status

      response-optional-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added