Functionalities
Other
$getAuditLog
Returns audit logs information, based on the type of action that is given. Bot must have `view audit logs` permission.

FUNCTION USAGE

  • $getAuditLog[userID/everyone;action]
  • $getAuditLog[userID/everyone;reason]
  • $getAuditLog[userID/everyone;executor]
  • $getAuditLog[userID/everyone;target]

Properties:

userID - Fetches the log of the defined user by their user ID. everyone - Fetches the last audit log. action - What triggered the audit log. reason - The reason defined in the audit log. executor - The user that triggered the audit log. target - What was changed to trigger the audit log.
Example: Returns the last log for the command author.
1
bot.Command({
2
name: "getaudit",
3
code: `
4
$getAuditLog[$authorID;action]
5
$getAuditLog[$authorID;target]
6
$getAuditLog[$authorID;executor]
7
$getAuditLog[$authorID;reason]
8
`
9
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: