Logsin-progress

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

The service will also serve as a centralized mechanism for centralized logging for internal actions/diagnostics that will be hidden from end-users unless they’re relevant to their currently selected guild.

Note: This information may be out-of-date.

Implementation Details

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_CREATEnew channel overwrite created
14CHANNEL_OVERWRITE_UPDATEchannel overwrite was updated
15CHANNEL_OVERWRITE_DELETEchannel overwrite was deleted
20MEMBER_KICKmember was kicked
21MEMBER_PRUNEmembers were pruned
22MEMBER_BAN_ADDmember was banned
23MEMBER_BAN_REMOVEmember was pardoned
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_SENDmessage was sent
3002MESSAGE_EDITmessage was edited
3003MESSAGE_DELETEmessage was deleted
3100REACTION_ADDreaction was added
3101REACTION_REMOVEreaction was removed
3200AUTO_RESPONSE_ADDautoresponse was added
3201AUTO_RESPONSE_REMOVEautorespones was removed
3202AUTO_RESPONSE_EDITautoresponse was edited
3203AUTO_RESPONSE_TRIGGERautoresponse was triggered
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

Backend Structure

Ingress Service

Query Service

Datastore Service

Recovery Service

Recovery Queue Service


Joseph Azevedo profile
Last modified last year
Edit this page on GitHub
Built with using