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:
@@ -781,6 +781,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'rename-channel') {
|
||||
await platform.renameChannel({ channelId: msg.channelId, name: msg.name })
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'reorder-categories') {
|
||||
await platform.reorderCategories({ categoryIds: msg.categoryIds || [] })
|
||||
pushState()
|
||||
@@ -1103,7 +1108,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
await platform.updateGuildCustomRole(msg.roleId, {
|
||||
name: msg.name,
|
||||
color: msg.color,
|
||||
permissions: msg.permissions
|
||||
permissions: msg.permissions,
|
||||
hoist: msg.hoist
|
||||
})
|
||||
pushState()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user