Concord - C Discord API library
A Discord API wrapper library written in C
user.h
Go to the documentation of this file.
1
7#ifndef DISCORD_USER_H
8#define DISCORD_USER_H
9
23 struct discord_ret_user *ret);
24
34 u64snowflake user_id,
35 struct discord_ret_user *ret);
36
46 struct discord *client,
47 struct discord_modify_current_user *params,
48 struct discord_ret_user *ret);
49
59 struct discord_ret_guilds *ret);
60
70 u64snowflake guild_id,
71 struct discord_ret *ret);
72
85 struct discord_create_dm *params,
86 struct discord_ret_channel *ret);
87
99 struct discord_create_group_dm *params,
100 struct discord_ret_channel *ret);
101
111 struct discord_ret_connections *ret);
112
115#endif /* DISCORD_USER_H */
CCORDcode
Definition: error.h:12
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
CCORDcode discord_create_dm(struct discord *client, struct discord_create_dm *params, struct discord_ret_channel *ret)
Create a new DM channel with a given user.
CCORDcode discord_get_current_user_guilds(struct discord *client, struct discord_ret_guilds *ret)
Get guilds client is a member of.
CCORDcode discord_get_current_user(struct discord *client, struct discord_ret_user *ret)
Get client's user.
CCORDcode discord_modify_current_user(struct discord *client, struct discord_modify_current_user *params, struct discord_ret_user *ret)
Modify client's user account settings.
CCORDcode discord_leave_guild(struct discord *client, u64snowflake guild_id, struct discord_ret *ret)
Leave a guild.
CCORDcode discord_create_group_dm(struct discord *client, struct discord_create_group_dm *params, struct discord_ret_channel *ret)
Create a new group DM channel with multiple users.
CCORDcode discord_get_user(struct discord *client, u64snowflake user_id, struct discord_ret_user *ret)
Get user for a given id.
CCORDcode discord_get_user_connections(struct discord *client, struct discord_ret_connections *ret)
Get a list of connection objects.
Definition: user.h:164
Definition: user.h:171
Definition: user.h:138
Request's return context.
Definition: discord-response.h:84
Request's return context.
Definition: discord-response.h:152
Request's return context.
Definition: discord-response.h:102
Request's return context.
Definition: discord-response.h:150
Request's return context.
Definition: discord-response.h:54
The Discord client handler.
Definition: discord-internal.h:1190