Wire rename-channel IPC and role hoist updates

Handle rename-channel and pass hoist flag through update-guild-custom-role.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 22:17:45 -04:00
co-authored by Cursor
parent 2a16746f71
commit 6f75eaaa11
+7 -1
View File
@@ -781,6 +781,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState() pushState()
return true return true
} }
if (t === 'rename-channel') {
await platform.renameChannel({ channelId: msg.channelId, name: msg.name })
pushState()
return true
}
if (t === 'reorder-categories') { if (t === 'reorder-categories') {
await platform.reorderCategories({ categoryIds: msg.categoryIds || [] }) await platform.reorderCategories({ categoryIds: msg.categoryIds || [] })
pushState() pushState()
@@ -1103,7 +1108,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
await platform.updateGuildCustomRole(msg.roleId, { await platform.updateGuildCustomRole(msg.roleId, {
name: msg.name, name: msg.name,
color: msg.color, color: msg.color,
permissions: msg.permissions permissions: msg.permissions,
hoist: msg.hoist
}) })
pushState() pushState()
return true return true