Concord - C Discord API library
A Discord API wrapper library written in C
|
Channel's public API supported by Concord. More...
Modules | |
Embed builder | |
Dynamic embed builder functions. | |
Helper functions | |
Custom helper functions. | |
Message flags | |
Data Structures | |
struct | discord_ret_channel |
Request's return context. More... | |
struct | discord_ret_channels |
Request's return context. More... | |
struct | discord_ret_message |
Request's return context. More... | |
struct | discord_ret_messages |
Request's return context. More... | |
struct | discord_ret_followed_channel |
Request's return context. More... | |
struct | discord_ret_thread_members |
Request's return context. More... | |
struct | discord_ret_thread_response_body |
Request's return context. More... | |
Functions | |
CCORDcode | discord_get_channel (struct discord *client, u64snowflake channel_id, struct discord_ret_channel *ret) |
Get channel from given id. More... | |
CCORDcode | discord_modify_channel (struct discord *client, u64snowflake channel_id, struct discord_modify_channel *params, struct discord_ret_channel *ret) |
Update a channel's settings. More... | |
CCORDcode | discord_delete_channel (struct discord *client, u64snowflake channel_id, struct discord_delete_channel *params, struct discord_ret_channel *ret) |
Delete a channel, or close a private message. More... | |
CCORDcode | discord_get_channel_messages (struct discord *client, u64snowflake channel_id, struct discord_get_channel_messages *params, struct discord_ret_messages *ret) |
Get messages for a given channel. More... | |
CCORDcode | discord_get_channel_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_ret_message *ret) |
Get a specific message in the channel. More... | |
CCORDcode | discord_create_message (struct discord *client, u64snowflake channel_id, struct discord_create_message *params, struct discord_ret_message *ret) |
Post a message to a guild text or DM channel. More... | |
CCORDcode | discord_crosspost_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_ret_message *ret) |
Crosspost a message in a News Channel to following channels. More... | |
CCORDcode | discord_create_reaction (struct discord *client, u64snowflake channel_id, u64snowflake message_id, u64snowflake emoji_id, const char emoji_name[], struct discord_ret *ret) |
Create a reaction for the message. More... | |
CCORDcode | discord_delete_own_reaction (struct discord *client, u64snowflake channel_id, u64snowflake message_id, u64snowflake emoji_id, const char emoji_name[], struct discord_ret *ret) |
Delete a reaction the current user has made for the message. More... | |
CCORDcode | discord_delete_user_reaction (struct discord *client, u64snowflake channel_id, u64snowflake message_id, u64snowflake user_id, u64snowflake emoji_id, const char emoji_name[], struct discord_ret *ret) |
Deletes another user's reaction. More... | |
CCORDcode | discord_get_reactions (struct discord *client, u64snowflake channel_id, u64snowflake message_id, u64snowflake emoji_id, const char emoji_name[], struct discord_get_reactions *params, struct discord_ret_users *ret) |
Get a list of users that reacted with given emoji. More... | |
CCORDcode | discord_delete_all_reactions (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_ret *ret) |
Deletes all reactions from message. More... | |
CCORDcode | discord_delete_all_reactions_for_emoji (struct discord *client, u64snowflake channel_id, u64snowflake message_id, u64snowflake emoji_id, const char emoji_name[], struct discord_ret *ret) |
Deletes all the reactions for a given emoji on message. More... | |
CCORDcode | discord_edit_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_edit_message *params, struct discord_ret_message *ret) |
Edit a previously sent message. More... | |
CCORDcode | discord_delete_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_delete_message *params, struct discord_ret *ret) |
Delete a message. More... | |
CCORDcode | discord_bulk_delete_messages (struct discord *client, u64snowflake channel_id, struct discord_bulk_delete_messages *params, struct discord_ret *ret) |
Delete multiple messages in a single request. More... | |
CCORDcode | discord_edit_channel_permissions (struct discord *client, u64snowflake channel_id, u64snowflake overwrite_id, struct discord_edit_channel_permissions *params, struct discord_ret *ret) |
Edit the channel permission overwrites for a user or role in a channel. More... | |
CCORDcode | discord_get_channel_invites (struct discord *client, u64snowflake channel_id, struct discord_ret_invites *ret) |
Get invites (with invite metadata) for the channel. More... | |
CCORDcode | discord_create_channel_invite (struct discord *client, u64snowflake channel_id, struct discord_create_channel_invite *params, struct discord_ret_invite *ret) |
Create a new invite for the channel. More... | |
CCORDcode | discord_delete_channel_permission (struct discord *client, u64snowflake channel_id, u64snowflake overwrite_id, struct discord_delete_channel_permission *params, struct discord_ret *ret) |
Delete a channel permission overwrite for a user or role in a channel. More... | |
CCORDcode | discord_trigger_typing_indicator (struct discord *client, u64snowflake channel_id, struct discord_ret *ret) |
Post a typing indicator for the specified channel. More... | |
CCORDcode | discord_follow_news_channel (struct discord *client, u64snowflake channel_id, struct discord_follow_news_channel *params, struct discord_ret_followed_channel *ret) |
Follow a News Channel to send messages to a target channel. More... | |
CCORDcode | discord_get_pinned_messages (struct discord *client, u64snowflake channel_id, struct discord_ret_messages *ret) |
Get all pinned messages in the channel. More... | |
CCORDcode | discord_pin_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_pin_message *params, struct discord_ret *ret) |
Pin a message to a channel. More... | |
CCORDcode | discord_unpin_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_unpin_message *params, struct discord_ret *ret) |
Unpin a message from a channel. More... | |
CCORDcode | discord_group_dm_add_recipient (struct discord *client, u64snowflake channel_id, u64snowflake user_id, struct discord_group_dm_add_recipient *params, struct discord_ret *ret) |
Adds a recipient to a Group DM using their access token. More... | |
CCORDcode | discord_group_dm_remove_recipient (struct discord *client, u64snowflake channel_id, u64snowflake user_id, struct discord_ret *ret) |
Removes a recipient from a Group DM. More... | |
CCORDcode | discord_start_thread_with_message (struct discord *client, u64snowflake channel_id, u64snowflake message_id, struct discord_start_thread_with_message *params, struct discord_ret_channel *ret) |
Creates a new thread from an existing message. More... | |
CCORDcode | discord_start_thread_without_message (struct discord *client, u64snowflake channel_id, struct discord_start_thread_without_message *params, struct discord_ret_channel *ret) |
Creates a new thread that is not connected to an existing message. More... | |
CCORDcode | discord_join_thread (struct discord *client, u64snowflake channel_id, struct discord_ret *ret) |
Adds the current user to an un-archived thread. More... | |
CCORDcode | discord_add_thread_member (struct discord *client, u64snowflake channel_id, u64snowflake user_id, struct discord_ret *ret) |
Adds another member to an un-archived thread. More... | |
CCORDcode | discord_leave_thread (struct discord *client, u64snowflake channel_id, struct discord_ret *ret) |
Removes the current user from a un-archived thread. More... | |
CCORDcode | discord_remove_thread_member (struct discord *client, u64snowflake channel_id, u64snowflake user_id, struct discord_ret *ret) |
Removes another member from a un-archived thread. More... | |
CCORDcode | discord_list_thread_members (struct discord *client, u64snowflake channel_id, struct discord_ret_thread_members *ret) |
Get members from a given thread channel. More... | |
CCORDcode | discord_list_active_threads (struct discord *client, u64snowflake channel_id, struct discord_ret_thread_response_body *ret) |
Get all active threads in a given channel. More... | |
CCORDcode | discord_list_public_archived_threads (struct discord *client, u64snowflake channel_id, u64unix_ms before, int limit, struct discord_ret_thread_response_body *ret) |
Get public archived threads in a given channel. More... | |
CCORDcode | discord_list_private_archived_threads (struct discord *client, u64snowflake channel_id, u64unix_ms before, int limit, struct discord_ret_thread_response_body *ret) |
Get private archived threads in a given channel. More... | |
CCORDcode | discord_list_joined_private_archived_threads (struct discord *client, u64snowflake channel_id, u64unix_ms before, int limit, struct discord_ret_thread_response_body *ret) |
Get private archived threads that current user has joined. More... | |
Channel's public API supported by Concord.
CCORDcode discord_get_channel | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret_channel * | ret | ||
) |
Get channel from given id.
client | the client created with discord_init() |
channel_id | the channel to be retrieved |
ret | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
CCORDcode discord_modify_channel | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_modify_channel * | params, | ||
struct discord_ret_channel * | ret | ||
) |
Update a channel's settings.
client | the client created with discord_init() |
channel_id | the channel to be modified |
params | request parameters |
ret | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
CCORDcode discord_delete_channel | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_delete_channel * | params, | ||
struct discord_ret_channel * | ret | ||
) |
Delete a channel, or close a private message.
Channel Update Gateway
event will fire for each of them Channel Delete
event (or Thread Delete
if the channel was a thread)client | the client created with discord_init() |
channel_id | the channel to be deleted |
params | request parameters |
ret | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
CCORDcode discord_get_channel_messages | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_get_channel_messages * | params, | ||
struct discord_ret_messages * | ret | ||
) |
Get messages for a given channel.
client | the client created with discord_init() |
channel_id | the channel to get messages from |
params | request parameters |
ret | return context of the request. if successful a discord_messages will be sent over to its assigned done callback |
CCORDcode discord_get_channel_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_ret_message * | ret | ||
) |
Get a specific message in the channel.
client | the client created with discord_init() |
channel_id | the channel where the message resides |
message_id | the message itself |
ret | return context of the request. if successful a discord_message will be sent over to its assigned done callback |
CCORDcode discord_create_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_create_message * | params, | ||
struct discord_ret_message * | ret | ||
) |
Post a message to a guild text or DM channel.
Message Create
eventclient | the client created with discord_init() |
channel_id | the channel to send the message at |
params | request parameters |
ret | return context of the request. if successful a discord_message will be sent over to its assigned done callback |
CCORDcode discord_crosspost_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_ret_message * | ret | ||
) |
Crosspost a message in a News Channel to following channels.
client | the client created with discord_init() |
channel_id | the news channel that will crosspost |
message_id | the message that will crospost |
ret | return context of the request. if successful a discord_message will be sent over to its assigned done callback |
CCORDcode discord_create_reaction | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
u64snowflake | emoji_id, | ||
const char | emoji_name[], | ||
struct discord_ret * | ret | ||
) |
Create a reaction for the message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message to receive a reaction |
emoji_id | the emoji id (leave as 0 if not a custom emoji) |
emoji_name | the emoji name |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_delete_own_reaction | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
u64snowflake | emoji_id, | ||
const char | emoji_name[], | ||
struct discord_ret * | ret | ||
) |
Delete a reaction the current user has made for the message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message to have a reaction deleted |
emoji_id | the emoji id (leave as 0 if not a custom emoji) |
emoji_name | the emoji name |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_delete_user_reaction | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
u64snowflake | user_id, | ||
u64snowflake | emoji_id, | ||
const char | emoji_name[], | ||
struct discord_ret * | ret | ||
) |
Deletes another user's reaction.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message to have a reaction deleted |
user_id | the user the reaction belongs to |
emoji_id | the emoji id (leave as 0 if not a custom emoji) |
emoji_name | the emoji name |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_get_reactions | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
u64snowflake | emoji_id, | ||
const char | emoji_name[], | ||
struct discord_get_reactions * | params, | ||
struct discord_ret_users * | ret | ||
) |
Get a list of users that reacted with given emoji.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message reacted to |
emoji_id | the emoji id (leave as 0 if not a custom emoji) |
emoji_name | the emoji name |
params | request parameters |
ret | return context of the request. if successful a discord_users will be sent over to its assigned done callback |
CCORDcode discord_delete_all_reactions | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_ret * | ret | ||
) |
Deletes all reactions from message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message that will be purged of reactions |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_delete_all_reactions_for_emoji | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
u64snowflake | emoji_id, | ||
const char | emoji_name[], | ||
struct discord_ret * | ret | ||
) |
Deletes all the reactions for a given emoji on message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message that will be purged of reactions from particular emoji |
emoji_id | the emoji id (leave as 0 if not a custom emoji) |
emoji_name | the emoji name |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_edit_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_edit_message * | params, | ||
struct discord_ret_message * | ret | ||
) |
Edit a previously sent message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message that will be purged of reactions from particular emoji |
params | request parameters |
ret | return context of the request. if successful a discord_message will be sent over to its assigned done callback |
CCORDcode discord_delete_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_delete_message * | params, | ||
struct discord_ret * | ret | ||
) |
Delete a message.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
message_id | the message that will be purged of reactions from particular emoji |
params | request parameters |
CCORDcode discord_bulk_delete_messages | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_bulk_delete_messages * | params, | ||
struct discord_ret * | ret | ||
) |
Delete multiple messages in a single request.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_edit_channel_permissions | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | overwrite_id, | ||
struct discord_edit_channel_permissions * | params, | ||
struct discord_ret * | ret | ||
) |
Edit the channel permission overwrites for a user or role in a channel.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
overwrite_id | |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_get_channel_invites | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret_invites * | ret | ||
) |
Get invites (with invite metadata) for the channel.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
ret | return context of the request. if successful a discord_invites will be sent over to its assigned done callback |
CCORDcode discord_create_channel_invite | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_create_channel_invite * | params, | ||
struct discord_ret_invite * | ret | ||
) |
Create a new invite for the channel.
client | the client created with discord_init() |
channel_id | the channel that the message belongs to |
params | request parameters |
ret | return context of the request. if successful a discord_invite will be sent over to its assigned done callback |
CCORDcode discord_delete_channel_permission | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | overwrite_id, | ||
struct discord_delete_channel_permission * | params, | ||
struct discord_ret * | ret | ||
) |
Delete a channel permission overwrite for a user or role in a channel.
client | the client created with discord_init() |
channel_id | the channel to the permission deleted |
overwrite_id | the id of the overwritten permission |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_trigger_typing_indicator | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret * | ret | ||
) |
Post a typing indicator for the specified channel.
client | the client created with discord_init() |
channel_id | the channel to post the typing indicator to |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_follow_news_channel | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_follow_news_channel * | params, | ||
struct discord_ret_followed_channel * | ret | ||
) |
Follow a News Channel to send messages to a target channel.
client | the client created with discord_init() |
channel_id | the channel to be followed |
ret | return context of the request. if successful a discord_followed_channel will be sent over to its assigned done callback |
CCORDcode discord_get_pinned_messages | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret_messages * | ret | ||
) |
Get all pinned messages in the channel.
client | the client created with discord_init() |
channel_id | the channel where the get pinned messages from |
ret | return context of the request. if successful a discord_messages will be sent over to its assigned done callback |
CCORDcode discord_pin_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_pin_message * | params, | ||
struct discord_ret * | ret | ||
) |
Pin a message to a channel.
client | the client created with discord_init() |
channel_id | channel to pin the message on |
message_id | message to be pinned |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_unpin_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_unpin_message * | params, | ||
struct discord_ret * | ret | ||
) |
Unpin a message from a channel.
client | the client created with discord_init() |
channel_id | channel for the message to be unpinned |
message_id | message to be unpinned |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_group_dm_add_recipient | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | user_id, | ||
struct discord_group_dm_add_recipient * | params, | ||
struct discord_ret * | ret | ||
) |
Adds a recipient to a Group DM using their access token.
client | the client created with discord_init() |
channel_id | group to add the user in |
user_id | user to be added |
params | request parameters |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_group_dm_remove_recipient | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | user_id, | ||
struct discord_ret * | ret | ||
) |
Removes a recipient from a Group DM.
client | the client created with discord_init() |
channel_id | channel for the user to be removed from |
user_id | user to be removed |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_start_thread_with_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | message_id, | ||
struct discord_start_thread_with_message * | params, | ||
struct discord_ret_channel * | ret | ||
) |
Creates a new thread from an existing message.
Thread Create
eventclient | 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 | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
CCORDcode discord_start_thread_without_message | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_start_thread_without_message * | params, | ||
struct discord_ret_channel * | ret | ||
) |
Creates a new thread that is not connected to an existing message.
Thread Create
eventclient | the client created with discord_init() |
channel_id | channel to start a thread on |
params | request parameters |
ret | return context of the request. if successful a discord_channel will be sent over to its assigned done callback |
CCORDcode discord_join_thread | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret * | ret | ||
) |
Adds the current user to an un-archived thread.
Thread Members Update
eventclient | the client created with discord_init() |
channel_id | the thread to be joined |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_add_thread_member | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | user_id, | ||
struct discord_ret * | ret | ||
) |
Adds another member to an un-archived thread.
Thread Members Update
eventclient | the client created with discord_init() |
channel_id | the thread to be joined |
user_id | user to be added to thread |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_leave_thread | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret * | ret | ||
) |
Removes the current user from a un-archived thread.
Thread Members Update
eventclient | the client created with discord_init() |
channel_id | the thread to be removed from |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_remove_thread_member | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64snowflake | user_id, | ||
struct discord_ret * | ret | ||
) |
Removes another member from a un-archived thread.
Thread Members Update
event MANAGE_THREADS
permissionclient | the client created with discord_init() |
channel_id | the thread to be removed from |
user_id | user to be removed |
ret | return context of the request. if successful the assigned done will be triggered |
CCORDcode discord_list_thread_members | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret_thread_members * | ret | ||
) |
Get members from a given thread channel.
Thread Members Update
event MANAGE_THREADS
permissionclient | the client created with discord_init() |
channel_id | the thread to be joined |
ret | return context of the request. if successful a discord_thread_members will be sent over to its assigned done callback |
CCORDcode discord_list_active_threads | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
struct discord_ret_thread_response_body * | ret | ||
) |
Get all active threads in a given channel.
client | the client created with discord_init() |
channel_id | the channel to be searched for threads |
ret | return context of the request. if successful a discord_thread_response_body will be sent over to its assigned done callback |
CCORDcode discord_list_public_archived_threads | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64unix_ms | before, | ||
int | limit, | ||
struct discord_ret_thread_response_body * | ret | ||
) |
Get public archived threads in a given channel.
client | the client created with discord_init() |
channel_id | the channel to be searched for threads |
before | return threads before this timestamp |
limit | maximum number of threads to return |
ret | return context of the request. if successful a discord_thread_response_body will be sent over to its assigned done callback |
CCORDcode discord_list_private_archived_threads | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64unix_ms | before, | ||
int | limit, | ||
struct discord_ret_thread_response_body * | ret | ||
) |
Get private archived threads in a given channel.
client | the client created with discord_init() |
channel_id | the channel to be searched for threads |
before | return threads before this timestamp |
limit | maximum number of threads to return |
ret | return context of the request. if successful a discord_thread_response_body will be sent over to its assigned done callback |
CCORDcode discord_list_joined_private_archived_threads | ( | struct discord * | client, |
u64snowflake | channel_id, | ||
u64unix_ms | before, | ||
int | limit, | ||
struct discord_ret_thread_response_body * | ret | ||
) |
Get private archived threads that current user has joined.
client | the client created with discord_init() |
channel_id | the channel to be searched for threads |
before | return threads before this timestamp |
limit | maximum number of threads to return |
ret | return context of the request. if successful a discord_thread_response_body will be sent over to its assigned done callback |