Group DM Add Recipient#
-
ORCAcode discord_group_dm_add_recipient(struct discord *client, u64_snowflake_t channel_id, u64_snowflake_t user_id, struct discord_group_dm_add_recipient_params *params)#
Adds a recipient to a Group DM using their access token.
- Parameters:
client – the client created with discord_init()
channel_id – group to add the user in
user_id – user to be added
params – request parameters
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_group_dm_add_recipient_params#
Methods
Initializer:
void discord_group_dm_add_recipient_params_init(struct discord_group_dm_add_recipient_params *)
Cleanup:
void discord_group_dm_add_recipient_params_cleanup(struct discord_group_dm_add_recipient_params *)
void discord_group_dm_add_recipient_params_list_free(struct discord_group_dm_add_recipient_params **)
JSON Decoder:
void discord_group_dm_add_recipient_params_from_json(char *rbuf, size_t len, struct discord_group_dm_add_recipient_params *)
void discord_group_dm_add_recipient_params_list_from_json(char *rbuf, size_t len, struct discord_group_dm_add_recipient_params ***)
JSON Encoder:
void discord_group_dm_add_recipient_params_to_json(char *wbuf, size_t len, struct discord_group_dm_add_recipient_params *)
void discord_group_dm_add_recipient_params_list_to_json(char *wbuf, size_t len, struct discord_group_dm_add_recipient_params **)