some infra

This commit is contained in:
2026-08-27 21:47:03 +02:00
parent 7c2a2aecd1
commit 73809eaa7c
61 changed files with 253 additions and 17 deletions
+37
View File
@@ -0,0 +1,37 @@
/**
* @file audit_log.h
* @author Cogmasters
* @brief Audit Log public functions and datatypes
*/
#ifndef DISCORD_AUDIT_LOG
#define DISCORD_AUDIT_LOG
/** @defgroup DiscordAPIAuditLog Audit Log
* @ingroup DiscordAPI
* @brief Audit Log's public API supported by Concord
* @{ */
/**
* @brief Get audit log for a given guild
*
* @note Requires the 'VIEW_AUDIT_LOG' permission
* @param client the client created with discord_from_token()
* @param guild_id the guild to retrieve the audit log from
* @param params request parameters
* @CCORD_ret_obj{ret,audit_log}
* @CCORD_return
*/
CCORDcode discord_get_guild_audit_log(
struct discord *client,
u64snowflake guild_id,
struct discord_get_guild_audit_log *params,
struct discord_ret_audit_log *ret);
/** @example audit-log.c
* Demonstrates listening to audit-log events and fetching a specific audit-log
*/
/** @} DiscordAPIAuditLog */
#endif /* DISCORD_AUDIT_LOG */