Create a new Audit Log Method Handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.auditLog.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Get the audit logs of the specified guild id
An object with audit log data
Permissions needed | Condition |
---|---|
VIEW_AUDIT_LOG | always |
// Get an audit log entry of user 12345678901234567 updating themself (24 is MEMBER_UPDATE)
const client = new SnowTransfer("TOKEN")
const data = {
user_id: "12345678901234567",
action_type: 24,
}
const channel = await client.auditLog.getAuditLog("guild id", data)
id of a guild
Optional
data: { optional audit log filter values
Optional
action_Optional
before?: stringOptional
limit?: numberOptional
user_Generated using TypeDoc
Methods for interacting with Guild Audit Logs