New docs? Check out the change log to learn more!
curl --request POST \
--url https://discord.com/api/v10/channels/{channel_id}/invites \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"max_age": 302400
}
'{
"type": 2,
"code": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"channel": "<unknown>",
"inviter": {
"id": "<string>",
"username": "<string>",
"avatar": "<string>",
"discriminator": "<string>",
"public_flags": 123,
"flags": 0,
"global_name": "<string>",
"primary_guild": "<unknown>",
"bot": true,
"system": true,
"banner": "<string>",
"accent_color": 123,
"avatar_decoration_data": "<unknown>",
"collectibles": "<unknown>"
},
"max_age": 123,
"created_at": "2023-11-07T05:31:56Z",
"friends_count": 123,
"is_contact": true,
"uses": 123,
"max_uses": 123,
"flags": 123
}curl --request POST \
--url https://discord.com/api/v10/channels/{channel_id}/invites \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"max_age": 302400
}
'{
"type": 2,
"code": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"channel": "<unknown>",
"inviter": {
"id": "<string>",
"username": "<string>",
"avatar": "<string>",
"discriminator": "<string>",
"public_flags": 123,
"flags": 0,
"global_name": "<string>",
"primary_guild": "<unknown>",
"bot": true,
"system": true,
"banner": "<string>",
"accent_color": 123,
"avatar_decoration_data": "<unknown>",
"collectibles": "<unknown>"
},
"max_age": 123,
"created_at": "2023-11-07T05:31:56Z",
"friends_count": 123,
"is_contact": true,
"uses": 123,
"max_uses": 123,
"flags": 123
}Discord bot token
1 <= x <= 604800200 response for create_channel_invite
2 Show child attributes
Show child attributes