Concord - C Discord API library
A Discord API wrapper library written in C
guild.h
Go to the documentation of this file.
1
7#ifndef DISCORD_GUILD_H
8#define DISCORD_GUILD_H
9
25 struct discord_create_guild *params,
26 struct discord_ret_guild *ret);
27
41 u64snowflake guild_id,
42 struct discord_ret_guild *ret);
43
54 u64snowflake guild_id,
55 struct discord_ret_guild_preview *ret);
56
69 u64snowflake guild_id,
70 struct discord_modify_guild *params,
71 struct discord_ret_guild *ret);
72
83 u64snowflake guild_id,
84 struct discord_ret *ret);
85
95 u64snowflake guild_id,
96 struct discord_ret_channels *ret);
97
113 struct discord *client,
114 u64snowflake guild_id,
115 struct discord_create_guild_channel *params,
116 struct discord_ret_channel *ret);
117
130 struct discord *client,
131 u64snowflake guild_id,
133 struct discord_ret *ret);
134
145 u64snowflake guild_id,
146 u64snowflake user_id,
147 struct discord_ret_guild_member *ret);
148
159 u64snowflake guild_id,
160 struct discord_list_guild_members *params,
161 struct discord_ret_guild_members *ret);
162
174 struct discord *client,
175 u64snowflake guild_id,
176 struct discord_search_guild_members *params,
177 struct discord_ret_guild_members *ret);
178
195 u64snowflake guild_id,
196 u64snowflake user_id,
197 struct discord_add_guild_member *params,
198 struct discord_ret_guild_member *ret);
199
213 struct discord *client,
214 u64snowflake guild_id,
215 u64snowflake user_id,
216 struct discord_modify_guild_member *params,
217 struct discord_ret_guild_member *ret);
218
230 struct discord *client,
231 u64snowflake guild_id,
232 struct discord_modify_current_member *params,
233 struct discord_ret_guild_member *ret);
234
247 struct discord *client,
248 u64snowflake guild_id,
250 struct discord_ret_guild_member *ret);
251
265 struct discord *client,
266 u64snowflake guild_id,
267 u64snowflake user_id,
268 u64snowflake role_id,
269 struct discord_add_guild_member_role *params,
270 struct discord_ret *ret);
271
286 struct discord *client,
287 u64snowflake guild_id,
288 u64snowflake user_id,
289 u64snowflake role_id,
291 struct discord_ret *ret);
292
306 struct discord *client,
307 u64snowflake guild_id,
308 u64snowflake user_id,
309 struct discord_remove_guild_member *params,
310 struct discord_ret *ret);
311
322 u64snowflake guild_id,
323 struct discord_ret_bans *ret);
324
336 u64snowflake guild_id,
337 u64snowflake user_id,
338 struct discord_ret_ban *ret);
339
353 u64snowflake guild_id,
354 u64snowflake user_id,
355 struct discord_create_guild_ban *params,
356 struct discord_ret *ret);
357
371 u64snowflake guild_id,
372 u64snowflake user_id,
373 struct discord_remove_guild_ban *params,
374 struct discord_ret *ret);
375
385 u64snowflake guild_id,
386 struct discord_ret_roles *ret);
387
400 u64snowflake guild_id,
401 struct discord_create_guild_role *params,
402 struct discord_ret_role *ret);
403
418 struct discord *client,
419 u64snowflake guild_id,
420 struct discord_get_guild_prune_count *params,
421 struct discord_ret_prune_count *ret);
422
437 u64snowflake guild_id,
438 struct discord_begin_guild_prune *params,
439 struct discord_ret *ret);
440
451 struct discord *client,
452 u64snowflake guild_id,
453 struct discord_ret_voice_regions *ret);
454
465 u64snowflake guild_id,
466 struct discord_ret_invites *ret);
467
478 u64snowflake guild_id,
479 struct discord_ret_integrations *ret);
480
495 struct discord *client,
496 u64snowflake guild_id,
497 u64snowflake integration_id,
499 struct discord_ret *ret);
500
511 struct discord *client,
512 u64snowflake guild_id,
514
527 struct discord *client,
528 u64snowflake guild_id,
529 struct discord_guild_widget_settings *params,
531
541 u64snowflake guild_id,
542 struct discord_ret_guild_widget *ret);
543
553 u64snowflake guild_id,
554 struct discord_ret_invite *ret);
555
556/* TODO: handle ContentType: image/png and add 'struct discord_png' */
557#if 0
568 struct discord *client,
569 u64snowflake guild_id,
570 struct discord_get_guild_widget_image *params,
571 struct discord_ret_png *ret);
572#endif
573
583 struct discord *client,
584 u64snowflake guild_id,
585 struct discord_ret_welcome_screen *ret);
586
598 struct discord *client,
599 u64snowflake guild_id,
601 struct discord_ret_welcome_screen *ret);
602
616 struct discord *client,
617 u64snowflake guild_id,
619 struct discord_ret *ret);
620
634 struct discord *client,
635 u64snowflake guild_id,
636 u64snowflake user_id,
637 struct discord_modify_user_voice_state *params,
638 struct discord_ret *ret);
639
652 struct discord *client,
653 u64snowflake guild_id,
655 struct discord_ret_roles *ret);
656
670 u64snowflake guild_id,
671 u64snowflake role_id,
672 struct discord_modify_guild_role *params,
673 struct discord_ret_role *ret);
674
688 u64snowflake guild_id,
689 u64snowflake role_id,
690 struct discord_delete_guild_role *params,
691 struct discord_ret *ret);
692
700#endif /* DISCORD_GUILD_H */
CCORDcode
Definition: error.h:12
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
CCORDcode discord_modify_guild(struct discord *client, u64snowflake guild_id, struct discord_modify_guild *params, struct discord_ret_guild *ret)
Modify a guild's settings.
CCORDcode discord_get_guild_bans(struct discord *client, u64snowflake guild_id, struct discord_ret_bans *ret)
Fetch banned users for given guild.
CCORDcode discord_modify_current_member(struct discord *client, u64snowflake guild_id, struct discord_modify_current_member *params, struct discord_ret_guild_member *ret)
Modifies the current member in the guild.
CCORDcode discord_get_guild_preview(struct discord *client, u64snowflake guild_id, struct discord_ret_guild_preview *ret)
Get the preview for the given guild.
CCORDcode discord_delete_guild_role(struct discord *client, u64snowflake guild_id, u64snowflake role_id, struct discord_delete_guild_role *params, struct discord_ret *ret)
Delete a guild role.
CCORDcode discord_get_guild_member(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_ret_guild_member *ret)
Get guild member of a guild from given user id.
CCORDcode discord_delete_guild_integrations(struct discord *client, u64snowflake guild_id, u64snowflake integration_id, struct discord_delete_guild_integrations *params, struct discord_ret *ret)
Deletes the integration for the guild. It will also delete any associated webhooks and bots.
CCORDcode discord_remove_guild_ban(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_remove_guild_ban *params, struct discord_ret *ret)
Remove the ban for a user.
CCORDcode discord_modify_user_voice_state(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_modify_user_voice_state *params, struct discord_ret *ret)
Updates user's voice state.
CCORDcode discord_modify_guild_role_positions(struct discord *client, u64snowflake guild_id, struct discord_modify_guild_role_positions *params, struct discord_ret_roles *ret)
Modify the positions of a given role list for the guild.
CCORDcode discord_get_guild(struct discord *client, u64snowflake guild_id, struct discord_ret_guild *ret)
Get the guild with given id.
CCORDcode discord_modify_guild_role(struct discord *client, u64snowflake guild_id, u64snowflake role_id, struct discord_modify_guild_role *params, struct discord_ret_role *ret)
Modify a guild role.
CCORDcode discord_get_guild_vanity_url(struct discord *client, u64snowflake guild_id, struct discord_ret_invite *ret)
Get invite from a given guild.
CCORDcode discord_add_guild_member(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_add_guild_member *params, struct discord_ret_guild_member *ret)
Adds a user to the guild.
CCORDcode discord_create_guild_role(struct discord *client, u64snowflake guild_id, struct discord_create_guild_role *params, struct discord_ret_role *ret)
Create a new guild role.
CCORDcode discord_get_guild_integrations(struct discord *client, u64snowflake guild_id, struct discord_ret_integrations *ret)
Get guild integrations.
CCORDcode discord_get_guild_channels(struct discord *client, u64snowflake guild_id, struct discord_ret_channels *ret)
Fetch channels from given guild. Does not include threads.
CCORDcode discord_get_guild_prune_count(struct discord *client, u64snowflake guild_id, struct discord_get_guild_prune_count *params, struct discord_ret_prune_count *ret)
Returns the number of members that would be removed in a prune operation.
CCORDcode discord_get_guild_ban(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_ret_ban *ret)
Fetch banned user from given guild.
CCORDcode discord_modify_current_user_voice_state(struct discord *client, u64snowflake guild_id, struct discord_modify_current_user_voice_state *params, struct discord_ret *ret)
Updates the current user's voice state.
CCORDcode discord_begin_guild_prune(struct discord *client, u64snowflake guild_id, struct discord_begin_guild_prune *params, struct discord_ret *ret)
Begin guild prune operation.
CCORDcode discord_search_guild_members(struct discord *client, u64snowflake guild_id, struct discord_search_guild_members *params, struct discord_ret_guild_members *ret)
Get guild members whose username or nickname starts with a provided string.
CCORDcode discord_modify_guild_welcome_screen(struct discord *client, u64snowflake guild_id, struct discord_modify_guild_welcome_screen *params, struct discord_ret_welcome_screen *ret)
Modify the Welcome Screen for the guild.
CCORDcode discord_remove_guild_member(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_remove_guild_member *params, struct discord_ret *ret)
Remove a member from a guild.
CCORDcode discord_list_guild_members(struct discord *client, u64snowflake guild_id, struct discord_list_guild_members *params, struct discord_ret_guild_members *ret)
Get guild members of a guild.
CCORDcode discord_get_guild_widget_settings(struct discord *client, u64snowflake guild_id, struct discord_ret_guild_widget_settings *ret)
Get a guild widget settings.
CCORDcode discord_create_guild_ban(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_create_guild_ban *params, struct discord_ret *ret)
Bans user from a given guild.
CCORDcode discord_get_guild_roles(struct discord *client, u64snowflake guild_id, struct discord_ret_roles *ret)
Get guild roles.
CCORDcode discord_modify_guild_member(struct discord *client, u64snowflake guild_id, u64snowflake user_id, struct discord_modify_guild_member *params, struct discord_ret_guild_member *ret)
Modify retibutes of a guild member.
CCORDcode discord_modify_current_user_nick(struct discord *client, u64snowflake guild_id, struct discord_modify_current_user_nick *params, struct discord_ret_guild_member *ret)
Modify the nickname of the current user in a guild.
CCORDcode discord_get_guild_invites(struct discord *client, u64snowflake guild_id, struct discord_ret_invites *ret)
Get guild invites.
CCORDcode discord_modify_guild_channel_positions(struct discord *client, u64snowflake guild_id, struct discord_modify_guild_channel_positions *params, struct discord_ret *ret)
Modify guild channel positions.
CCORDcode discord_modify_guild_widget(struct discord *client, u64snowflake guild_id, struct discord_guild_widget_settings *params, struct discord_ret_guild_widget_settings *ret)
Modify a guild widget settings.
CCORDcode discord_get_guild_welcome_screen(struct discord *client, u64snowflake guild_id, struct discord_ret_welcome_screen *ret)
Get the Welcome Screen for the guild.
CCORDcode discord_add_guild_member_role(struct discord *client, u64snowflake guild_id, u64snowflake user_id, u64snowflake role_id, struct discord_add_guild_member_role *params, struct discord_ret *ret)
Adds a role to a guild member.
CCORDcode discord_delete_guild(struct discord *client, u64snowflake guild_id, struct discord_ret *ret)
Delete a guild permanently, user must be owner.
CCORDcode discord_create_guild(struct discord *client, struct discord_create_guild *params, struct discord_ret_guild *ret)
Create a new guild.
CCORDcode discord_create_guild_channel(struct discord *client, u64snowflake guild_id, struct discord_create_guild_channel *params, struct discord_ret_channel *ret)
Create a new guild channel.
CCORDcode discord_remove_guild_member_role(struct discord *client, u64snowflake guild_id, u64snowflake user_id, u64snowflake role_id, struct discord_remove_guild_member_role *params, struct discord_ret *ret)
Removes a role from a guild member.
CCORDcode discord_get_guild_voice_regions(struct discord *client, u64snowflake guild_id, struct discord_ret_voice_regions *ret)
Get voice regions (includes VIP servers when the guild is VIP-enabled)
CCORDcode discord_get_guild_widget(struct discord *client, u64snowflake guild_id, struct discord_ret_guild_widget *ret)
Get the widget for the guild.
Definition: guild.h:672
Definition: guild.h:602
Definition: guild.h:763
Definition: guild.h:685
Definition: guild.h:530
Definition: guild.h:698
Definition: guild.h:438
Definition: guild.h:775
Definition: guild.h:750
Definition: guild.h:754
Definition: guild.h:785
Definition: guild.h:266
Definition: guild.h:589
Definition: guild.h:655
Definition: guild.h:664
Definition: guild.h:616
Definition: guild.h:731
Definition: guild.h:479
Definition: guild.h:818
Definition: guild.h:693
Definition: guild.h:676
Definition: guild.h:680
Request's return context.
Definition: discord-response.h:108
Request's return context.
Definition: discord-response.h:109
Request's return context.
Definition: discord-response.h:84
Request's return context.
Definition: discord-response.h:85
Request's return context.
Definition: discord-response.h:104
Request's return context.
Definition: discord-response.h:105
Request's return context.
Definition: discord-response.h:103
Request's return context.
Definition: discord-response.h:107
Request's return context.
Definition: discord-response.h:106
Request's return context.
Definition: discord-response.h:101
Request's return context.
Definition: discord-response.h:113
Request's return context.
Definition: discord-response.h:132
Request's return context.
Definition: discord-response.h:133
Request's return context.
Definition: discord-response.h:114
Request's return context.
Definition: discord-response.h:110
Request's return context.
Definition: discord-response.h:111
Request's return context.
Definition: discord-response.h:157
Request's return context.
Definition: discord-response.h:112
Request's return context.
Definition: discord-response.h:54
Definition: guild.h:595
The Discord client handler.
Definition: discord-internal.h:1190