Functionalities
Other
$getAuditLogs
Returns the number of logs you specify. 2nd field may contain any of the 4 placeholders for further details on the audit log.

FUNCTION USAGE

  • $getAuditLogs[number;{action}]
  • $getAuditLogs[number;{reason}]
  • $getAuditLogs[number;{executor}]
  • $getAuditLogs[number;{target}]

Properties:

number - The number of logs to return. {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 1: Returns the last 20 audit logs.
1
bot.Command({
2
name: "getlogs",
3
code: `
4
$getAuditLogs[20]
5
`
6
})
Copied!
Example 2: Returns the last 20 audit logs with customized details.
1
bot.Command({
2
name: "getlogs",
3
code: `
4
$getAuditLogs[20;{action} - {reason}]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: