Concord - C Discord API library
A Discord API wrapper library written in C
guild_template.h
Go to the documentation of this file.
1
7#ifndef DISCORD_GUILD_TEMPLATE_H
8#define DISCORD_GUILD_TEMPLATE_H
9
24 const char template_code[],
25 struct discord_ret_guild_template *ret);
26
38 struct discord *client,
39 const char template_code[],
41 struct discord_ret_guild *ret);
42
53 u64snowflake guild_id,
54 struct discord_ret_guild_templates *ret);
55
67 struct discord *client,
68 u64snowflake guild_id,
69 struct discord_create_guild_template *params,
70 struct discord_ret_guild_template *ret);
71
83 u64snowflake guild_id,
84 const char template_code[],
85 struct discord_ret_guild_template *ret);
86
99 struct discord *client,
100 u64snowflake guild_id,
101 const char template_code[],
102 struct discord_modify_guild_template *params,
103 struct discord_ret_guild_template *ret);
104
116 struct discord *client,
117 u64snowflake guild_id,
118 const char template_code[],
119 struct discord_ret_guild_template *ret);
120
126#endif /* DISCORD_GUILD_TEMPLATE_H */
CCORDcode
Definition: error.h:12
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
CCORDcode discord_create_guild_from_guild_template(struct discord *client, const char template_code[], struct discord_create_guild_from_guild_template *params, struct discord_ret_guild *ret)
Create a new guild based on a template.
CCORDcode discord_sync_guild_template(struct discord *client, u64snowflake guild_id, const char template_code[], struct discord_ret_guild_template *ret)
Syncs the template to the guild's current state.
CCORDcode discord_get_guild_template(struct discord *client, const char template_code[], struct discord_ret_guild_template *ret)
Get a guild template for the given code.
CCORDcode discord_get_guild_templates(struct discord *client, u64snowflake guild_id, struct discord_ret_guild_templates *ret)
Returns discord_guild_templates from a guild.
CCORDcode discord_delete_guild_template(struct discord *client, u64snowflake guild_id, const char template_code[], struct discord_ret_guild_template *ret)
Deletes the guild template.
CCORDcode discord_modify_guild_template(struct discord *client, u64snowflake guild_id, const char template_code[], struct discord_modify_guild_template *params, struct discord_ret_guild_template *ret)
Modifies the template's metadata.
CCORDcode discord_create_guild_template(struct discord *client, u64snowflake guild_id, struct discord_create_guild_template *params, struct discord_ret_guild_template *ret)
Creates a template for the guild.
Definition: guild_template.h:55
Definition: guild_template.h:64
Definition: guild_template.h:73
Request's return context.
Definition: discord-response.h:126
Request's return context.
Definition: discord-response.h:127
Request's return context.
Definition: discord-response.h:101
The Discord client handler.
Definition: discord-internal.h:1182