withAuditContext()
Popii / withAuditContext
Function: withAuditContext()
Section titled “Function: withAuditContext()”withAuditContext<
T>(ctx,fn):Promise<T>
Defined in: plugins/auditLog.ts:58
Run fn with an audit actor context. Any setGuildConfig calls inside fn
will be diffed and logged automatically if the auditLogPlugin is active.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => Promise<T>
Returns
Section titled “Returns”Promise<T>