Concord - C Discord API library
A Discord API wrapper library written in C
discord_create_channel_invite Struct Reference

#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
 

Detailed Description

Field Documentation

◆ reason

char* discord_create_channel_invite::reason
Parameters
reasona reason to indicate why the action was taken

◆ max_age

int discord_create_channel_invite::max_age

duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days)

◆ max_uses

int discord_create_channel_invite::max_uses

max number of uses or 0 for unlimited. betwee 0 and 100

◆ temporary

bool discord_create_channel_invite::temporary

whether this invite only grants temporary membership

◆ unique

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)

◆ target_type

enum discord_invite_target_types discord_create_channel_invite::target_type

the type of target for this voice channel invite

◆ target_user_id

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

◆ target_application_id

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


The documentation for this struct was generated from the following file: