feat(ui-flow): role-editor open/close/select events (Phase 769)
Map role-editor UI operations to role-editor-opened/closed/selected. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -3152,6 +3152,24 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (
|
||||
t === 'role-editor-open' ||
|
||||
t === 'role-editor-close' ||
|
||||
t === 'role-editor-select'
|
||||
) {
|
||||
pushState()
|
||||
send({
|
||||
type:
|
||||
t === 'role-editor-open'
|
||||
? 'role-editor-opened'
|
||||
: t === 'role-editor-close'
|
||||
? 'role-editor-closed'
|
||||
: 'role-editor-selected',
|
||||
guildId: msg.guildId || platform.guild?.guild?.id || null,
|
||||
roleId: msg.roleId || null
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (
|
||||
t === 'settings-open' ||
|
||||
t === 'settings-close' ||
|
||||
|
||||
Reference in New Issue
Block a user