diff --git a/src/helpers/guilds/getAuditLogs.ts b/src/helpers/guilds/getAuditLogs.ts index ed4788956..d1ee34f13 100644 --- a/src/helpers/guilds/getAuditLogs.ts +++ b/src/helpers/guilds/getAuditLogs.ts @@ -48,5 +48,7 @@ export async function getAuditLogs(bot: Bot, guildId: bigint, options?: GetGuild } : undefined, })), + threads: auditlog.threads.map((thread) => bot.transformers.channel(bot, { channel: thread, guildId })), + scheduledEvents: auditlog.scheduled_events.map((event) => bot.transformers.scheduledEvent(bot, event)), }; } diff --git a/src/helpers/misc/editBotStatus.ts b/src/helpers/misc/editBotStatus.ts index cd2bcb9f5..b2c38fb12 100644 --- a/src/helpers/misc/editBotStatus.ts +++ b/src/helpers/misc/editBotStatus.ts @@ -7,7 +7,7 @@ export function editBotStatus(bot: Bot, data: Omit[]; /** List of threads found in the audit log. */ threads: Channel[]; + /** List of guild scheduled events found in the audit log */ + scheduledEvents: ScheduledEvent[]; }