Type Alias AuditLogOptions

AuditLogOptions: {
    client: Client<true>;
    data:
        | Prisma.JsonValue
        | Prisma.InputJsonValue
        | Prisma.JsonNullValueInput
        | { after: unknown; before: unknown; prompt?: Prompt };
    date?: Date;
    guild?: Guild;
    onFinish?: (log: PopulatedAuditLog) => void;
    type: AuditLogType;
    user: string;
}

Type declaration

  • Readonlyclient: Client<true>

    The client to use for logging, needs to be logged in/ready.

  • Readonlydata:
        | Prisma.JsonValue
        | Prisma.InputJsonValue
        | Prisma.JsonNullValueInput
        | { after: unknown; before: unknown; prompt?: Prompt }

    The data for the operation. If the before/after properties are present, the audit log will be presented as a settings change.

  • Optional Readonlydate?: Date

    The date the operation was performed, defaults to "now".

  • Optional Readonlyguild?: Guild

    The guild this operation is taking place in, if any.

  • Optional ReadonlyonFinish?: (log: PopulatedAuditLog) => void

    A function to run after the audit log has been created.

  • Readonlytype: AuditLogType

    The type of operation that is being performed.

  • Readonlyuser: string

    The user who initiated the operation.