Logs

Logs are a major feature of Architus that expands on discord’s audit log functionality in a variety of ways. In addition to a much longer history, Architus tracks many more actions than the built in log. It also provides the abilty to rollback most actions and an improved viewing interface.

Log Action Object

Log Action Structure
FieldTypeDescription
idhoar frostunique hoar frost ID for the event
reversiblebooleancan the action be reversed
action_numberintegernumber corresponding to the action type
agent_id?snowflakesnowflake of the user carrying out the action
subject_id?snowflake (or hoar frost)id of the object being acted upon (if it still exists)
old_data?mixed (any JSON value)data required to reconstruct the object

Action Type

Action Type Table
ACTION_NUMBERACTION_TYPEDescription
1GUILD_UPDATEguild was updated
10CHANNEL_CREATEnew channel created
11CHANNEL_UPDATEchannel was updated
12CHANNEL_DELETEchannel was deleted
13CHANNEL_OVERWRITE_CREATE
14CHANNEL_OVERWRITE_UPDATE
15CHANNEL_OVERWRITE_DELETE
20MEMBER_KICK
21MEMBER_PRUNE
22MEMBER_BAN_ADD
23MEMBER_BAN_REMOVE
24MEMBER_UPDATE
25MEMBER_ROLE_UPDATE
30ROLE_CREATE
31ROLE_UPDATE
32ROLE_DELETE
40INVITE_CREATE
41INVITE_UPDATE
42INVITE_DELETE
50WEBHOOK_CREATE
51WEBHOOK_UPDATE
52WEBHOOK_DELETE
60EMOJI_CREATE
61EMOJI_UPDATE
62EMOJI_DELETE
72MESSAGE_DELETE
-------------------------------------
3001MESSAGE_SEND
3002MESSAGE_EDIT
3003MESSAGE_DELETE
3100REACTION_ADD
3101REACTION_REMOVE
3200AUTO_RESPONSE_ADD
3201AUTO_RESPONSE_REMOVE
3202AUTO_RESPONSE_EDIT
3203AUTO_RESPONSE_TRIGGER
3300LOG_REVERT
3301LOG_ROLLBACK
3400EMOJI_MANAGER_TRIGGER
3401EMOJI_MANAGER_CREATE
3402EMOJI_MANAGER_DELETE
3403EMOJI_MANAGER_EXCHANGE

Action numbers below 3000 are native to discord while above 3000 are particular to Architus