Concord - C Discord API library
A Discord API wrapper library written in C
Audit Log

Audit Log's public API supported by Concord. More...

Collaboration diagram for Audit Log:

Data Structures

struct  discord_ret_audit_log
 Request's return context. More...
 

Functions

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)
 Get audit log for a given guild. More...
 

Detailed Description

Audit Log's public API supported by Concord.

Function Documentation

◆ discord_get_guild_audit_log()

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 
)

Get audit log for a given guild.

Note
Requires the 'VIEW_AUDIT_LOG' permission
Parameters
clientthe client created with discord_init()
guild_idthe guild to retrieve the audit log from
paramsrequest parameters
retreturn context of the request. if successful a discord_audit_log will be sent over to its assigned done callback
See also
discord_ret_audit_log for more options
Returns
CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
Examples
audit-log.c.