Concord - C Discord API library
A Discord API wrapper library written in C
gateway.h
Go to the documentation of this file.
1
7#ifndef DISCORD_GATEWAY_H
8#define DISCORD_GATEWAY_H
9
26CCORDcode discord_get_gateway(struct discord *client, struct ccord_szbuf *ret);
27
42 struct ccord_szbuf *ret);
43
59 struct discord *client,
60 u64snowflake guild_id,
61 u64snowflake user_id,
62 struct discord_modify_guild_member *params,
63 struct discord_ret_guild_member *ret);
64
70 struct discord_activity *activity);
71
76#endif /* DISCORD_GATEWAY_H */
CCORDcode
Definition: error.h:12
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
CCORDcode discord_disconnect_guild_member(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_modify_guild_member *params, struct discord_ret_guild_member *ret)
Disconnect a member from voice channel.
void discord_presence_add_activity(struct discord_presence_update *presence, struct discord_activity *activity)
Helper function to add presence activities.
CCORDcode discord_get_gateway(struct discord *client, struct ccord_szbuf *ret)
Get a single valid WSS URL, which the client can use for connecting.
CCORDcode discord_get_gateway_bot(struct discord *client, struct ccord_szbuf *ret)
Get a single valid WSS URL, and additional metadata that can help during the operation of large bots.
Generic sized buffer.
Definition: types.h:47
Definition: gateway.h:104
Definition: guild.h:616
Definition: gateway.h:214
Request's return context.
Definition: discord-response.h:104
The Discord client handler.
Definition: discord-internal.h:1182