valkyrie-api-types/rest/v9/auditLog.ts

33 lines
732 B
TypeScript
Raw Normal View History

2024-09-11 23:00:57 -07:00
import type { Snowflake } from '../../globals';
import type { APIAuditLog, AuditLogEvent } from '../../payloads/v9/auditLog';
/**
* https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log
*/
export interface RESTGetAPIAuditLogQuery {
2024-09-12 00:14:45 -07:00
/**
* Filter the log for actions made by a user
*/
user_id?: Snowflake;
/**
* The type of audit log events
*/
action_type?: AuditLogEvent;
/**
* Filter the log before a certain entry ID
*/
before?: Snowflake;
/**
* Filter the log after a certain entry ID
*/
after?: Snowflake;
/**
* How many entiries are returned (default 50, minimum 1, maximum 100)
*
* @default 50
*/
limit?: number;
2024-09-11 23:00:57 -07:00
}
2024-09-12 00:14:45 -07:00
export type RESTGetAPIAuditLogResult = APIAuditLog;