Start Thread Without Message#
-
ORCAcode discord_start_thread_without_message(struct discord *client, u64_snowflake_t channel_id, struct discord_start_thread_without_message_params *params, struct discord_channel *ret)#
Creates a new thread that is not connected to an existing message.
Note
Fires a
Thread Create
event- Parameters:
client – the client created with discord_init()
channel_id – channel to start a thread on
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_without_message_params#
Methods
Initializer:
void discord_start_thread_without_message_params_init(struct discord_start_thread_without_message_params *)
Cleanup:
void discord_start_thread_without_message_params_cleanup(struct discord_start_thread_without_message_params *)
void discord_start_thread_without_message_params_list_free(struct discord_start_thread_without_message_params **)
JSON Decoder:
void discord_start_thread_without_message_params_from_json(char *rbuf, size_t len, struct discord_start_thread_without_message_params *)
void discord_start_thread_without_message_params_list_from_json(char *rbuf, size_t len, struct discord_start_thread_without_message_params ***)
JSON Encoder:
void discord_start_thread_without_message_params_to_json(char *wbuf, size_t len, struct discord_start_thread_without_message_params *)
void discord_start_thread_without_message_params_list_to_json(char *wbuf, size_t len, struct discord_start_thread_without_message_params **)