feat(ui-flow): dry-run-automod IPC with member role simulation

Preview automod as a regular member so moderators see accurate block
reasons in server settings (Phase 92).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 03:52:15 -04:00
co-authored by Cursor
parent 9068ef8b5c
commit 1ea00cabc5
+7
View File
@@ -119,6 +119,13 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
send({ type: 'automation-hook-dry-run', ...out })
return true
}
if (t === 'dry-run-automod') {
const out = await platform.dryRunAutomodMessage(msg.content || '', {
memberRoles: ['member']
})
send({ type: 'automod-dry-run', ...out })
return true
}
if (t === 'set-announcement-crosspost') {
await platform.setAnnouncementCrosspostTargets(
msg.channelId,