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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user