types(audit_log): fix AuditLog typos (#696)

This commit is contained in:
ITOH
2021-03-28 13:33:58 +02:00
committed by GitHub
parent d5fb3f7d52
commit b4ce7f55b1

View File

@@ -2,15 +2,15 @@ import { SnakeCaseProps } from "../util.ts";
import { AuditLogEntry } from "./audit_log_entry.ts";
/** https://discord.com/developers/docs/resources/audit-log#audit-log-object */
export interface AuditLogPayload {
export interface AuditLog {
/** list of webhooks found in the audit log */
webhooks: Webhook[];
/** list of users found in the audit log */
users: User[];
/** list of audit log entries */
auditLogEntriesA: AuditLogEntry[];
auditLogEntries: AuditLogEntry[];
/** list of partial integration objects */
integrations: Partial<Integration>[];
}
export type DiscordAuditLogPayload = SnakeCaseProps<AuditLogPayload>;
export type DiscordAuditLog = SnakeCaseProps<AuditLog>;