Create Channel Invite#
-
ORCAcode discord_create_channel_invite(struct discord *client, u64_snowflake_t channel_id, struct discord_create_channel_invite_params *params, struct discord_invite *ret)#
Create a new invite for the channel.
- Parameters:
client – the client created with discord_init()
channel_id – the channel that the message belongs to
params – request parameters
ret – if successful, a discord_invite that should be free’d with
discord_invite_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_create_channel_invite_params#
Methods
Initializer:
void discord_create_channel_invite_params_init(struct discord_create_channel_invite_params *)
Cleanup:
void discord_create_channel_invite_params_cleanup(struct discord_create_channel_invite_params *)
void discord_create_channel_invite_params_list_free(struct discord_create_channel_invite_params **)
JSON Decoder:
void discord_create_channel_invite_params_from_json(char *rbuf, size_t len, struct discord_create_channel_invite_params *)
void discord_create_channel_invite_params_list_from_json(char *rbuf, size_t len, struct discord_create_channel_invite_params ***)
JSON Encoder:
void discord_create_channel_invite_params_to_json(char *wbuf, size_t len, struct discord_create_channel_invite_params *)
void discord_create_channel_invite_params_list_to_json(char *wbuf, size_t len, struct discord_create_channel_invite_params **)
Public Members
-
int max_age#
-
int max_uses#
-
bool temporary#
-
bool unique#
-
int target_type#
-
u64_snowflake_t target_user_id#
-
u64_snowflake_t target_application_id#