Concord - C Discord API library
A Discord API wrapper library written in C
|
Channel public functions and datatypes. More...
Go to the source code of this file.
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... | |
void | discord_embed_set_title (struct discord_embed *embed, char format[],...) |
Add title to embed. More... | |
void | discord_embed_set_description (struct discord_embed *embed, char format[],...) |
Add description to embed. More... | |
void | discord_embed_set_url (struct discord_embed *embed, char format[],...) |
Add URL to embed. More... | |
void | discord_embed_set_thumbnail (struct discord_embed *embed, char url[], char proxy_url[], int height, int width) |
Add thumbnail to embed. More... | |
void | discord_embed_set_image (struct discord_embed *embed, char url[], char proxy_url[], int height, int width) |
Add image to embed. More... | |
void | discord_embed_set_video (struct discord_embed *embed, char url[], char proxy_url[], int height, int width) |
Add video to embed. More... | |
void | discord_embed_set_footer (struct discord_embed *embed, char text[], char icon_url[], char proxy_icon_url[]) |
Add footer to embed. More... | |
void | discord_embed_set_provider (struct discord_embed *embed, char name[], char url[]) |
Add provider to embed. More... | |
void | discord_embed_set_author (struct discord_embed *embed, char name[], char url[], char icon_url[], char proxy_icon_url[]) |
Add author to embed. More... | |
void | discord_embed_add_field (struct discord_embed *embed, char name[], char value[], bool Inline) |
Add field to embed. More... | |
CCORDcode | discord_get_channel_at_pos (struct discord *client, u64snowflake guild_id, enum discord_channel_types type, int position, struct discord_ret_channel *ret) |
Get a guild's channel from its given numerical position. More... | |
void | discord_overwrite_append (struct discord_overwrites *permission_overwrites, u64snowflake id, int type, u64bitmask allow, u64bitmask deny) |
Append to an overwrite list. More... | |
Channel public functions and datatypes.