External audit webhooks

Learn which kind of data is sent to external audit webhooks.

If you have an Exoguard Pro subscription, you can leverage external auditing features through custom webhooks outside of the Discord platform. Every time a command that may affect your server's security or configuration is executed, a JSON POST request is sent to your webhook.

Audit Log Object

Here are the JSON fields you can find in an audit log event's request body:

Field
Type
Description

command

string

Full command name (example: config roles add)

author

object

Command author's Discord user object (developer docs)

guild

object

Partial guild object, with only the id and name fields

timestamp

float

Timestamp at which the current audit log event was fired

args?

object

Command arguments with their respective values, if any

success?

boolean

Authentication status, only for commands that require it

error?

string

Authentication failure reason, only when success is false

details?

string

Markdown-formatted string for additional command details

action?

string

Either create or update, only for the enroll command

Fields marked with a question mark ? are contextual, they will not always be present.

Example Events

Login (success)

{
  "command": "login",
  "success": true,
  "author": {
    "avatar": "39e2ed99424b085c44afac5f7d07f33c",
    "clan": null,
    "discriminator": "0",
    "global_name": "Xenthys",
    "id": "368771716140236802",
    "public_flags": 4588160,
    "username": "xenthys"
  },
  "timestamp": 1724620785.892197,
  "guild": {
    "id": 1201295802967019725,
    "name": "Exoguard HQ"
  }
}

Login (failure)

Login (failure, rate-limited)

Logout

Config roles add

Delete

Subscription redeem

Last updated