-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Expand file tree
/
Copy pathAuditLog.ts
More file actions
19 lines (18 loc) · 857 Bytes
/
AuditLog.ts
File metadata and controls
19 lines (18 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import type { APIAuditLog } from 'discord-api-types/v10';
import { Structure } from '../Structure';
import type { Partialize } from '../utils/types';
/**
* Represents an audit log on Discord.
*
* @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate`
* @remarks Has substructures `ApplicationCommand`, `AuditLogEntry`, `AutoModerationRule`, `GuildScheduledEvent`, `GuildIntegration`, `ThreadChannel`, `User`, and `Webhook`,
* which need to be instantiated and stored by an extending class using it
*/
export class AuditLog<Omitted extends keyof APIAuditLog | '' = ''> extends Structure<APIAuditLog, Omitted> {
/**
* @param data - The raw data received from the API for the audit log.
*/
public constructor(data: Partialize<APIAuditLog, Omitted>) {
super(data);
}
}