Start Thread With Message#
- 
ORCAcode discord_start_thread_with_message(struct discord *client, u64_snowflake_t channel_id, u64_snowflake_t message_id, struct discord_start_thread_with_message_params *params, struct discord_channel *ret)#
- Creates a new thread from an existing message. - Note - Fires a - Thread Createevent- Parameters:
- client – the client created with discord_init() 
- channel_id – channel to start a thread on 
- message_id – message to start a thread from 
- params – request parameters 
- ret – if successful, a discord_thread_channel that should be free’d with - discord_thread_channel_cleanup()
 
- Returns:
- ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary 
 
- 
struct discord_start_thread_with_message_params#
- Methods - Initializer: - void discord_start_thread_with_message_params_init(struct discord_start_thread_with_message_params *)
 
- Cleanup: - void discord_start_thread_with_message_params_cleanup(struct discord_start_thread_with_message_params *)
- void discord_start_thread_with_message_params_list_free(struct discord_start_thread_with_message_params **)
 
- JSON Decoder: - void discord_start_thread_with_message_params_from_json(char *rbuf, size_t len, struct discord_start_thread_with_message_params *)
- void discord_start_thread_with_message_params_list_from_json(char *rbuf, size_t len, struct discord_start_thread_with_message_params ***)
 
- JSON Encoder: - void discord_start_thread_with_message_params_to_json(char *wbuf, size_t len, struct discord_start_thread_with_message_params *)
- void discord_start_thread_with_message_params_list_to_json(char *wbuf, size_t len, struct discord_start_thread_with_message_params **)