|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <channel.h>
Data Fields | |
| char * | reason |
| int | max_age |
| int | max_uses |
| bool | temporary |
| bool | unique |
| enum discord_invite_target_types | target_type |
| u64snowflake | target_user_id |
| u64snowflake | target_application_id |
Public methods
discord_create_channel_invite_from_json(const char json[], size_t len, struct discord_create_channel_invite *this)discord_create_channel_invite_from_jsmnf(jsmnf *root, const char json[], struct discord_create_channel_invite *this)| char* discord_create_channel_invite::reason |
| reason | a reason to indicate why the action was taken |
| int discord_create_channel_invite::max_age |
duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days)
| int discord_create_channel_invite::max_uses |
max number of uses or 0 for unlimited. betwee 0 and 100
| bool discord_create_channel_invite::temporary |
whether this invite only grants temporary membership
| bool discord_create_channel_invite::unique |
if true, don't true to reuse a similar invite (useful for creating many unique one time use invites)
| enum discord_invite_target_types discord_create_channel_invite::target_type |
the type of target for this voice channel invite
| u64snowflake discord_create_channel_invite::target_user_id |
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
| u64snowflake discord_create_channel_invite::target_application_id |
the id of the embedded application to open for this invite, required if target_type is 2, the application must have the EMBEDDED flag