mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
Merge pull request #1869 from lts20050703/#1848-Document-audit-logs-for-scheduled-events
Document audit logs for scheduled events
This commit is contained in:
@@ -39,6 +39,7 @@ export async function createScheduledEvent(bot: Bot, guildId: bigint, options: C
|
||||
scheduled_end_time: options.scheduledEndTime ? new Date(options.scheduledEndTime).toISOString() : undefined,
|
||||
privacy_level: options.privacyLevel || ScheduledEventPrivacyLevel.GuildOnly,
|
||||
entity_type: options.entityType,
|
||||
reason: options.reason,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ export async function editScheduledEvent(
|
||||
privacy_level: options.privacyLevel,
|
||||
entity_type: options.entityType,
|
||||
status: options.status,
|
||||
reason: options.reason,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -93,6 +93,7 @@ export interface CreateScheduledEvent {
|
||||
privacyLevel?: ScheduledEventPrivacyLevel;
|
||||
/** the type of hosting entity associated with a scheduled event */
|
||||
entityType: ScheduledEventEntityType;
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
export interface EditScheduledEvent {
|
||||
@@ -114,6 +115,7 @@ export interface EditScheduledEvent {
|
||||
entityType: ScheduledEventEntityType;
|
||||
/** the status of the scheduled event */
|
||||
status: ScheduledEventStatus;
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
export interface GetScheduledEvents {
|
||||
|
||||
Reference in New Issue
Block a user