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()
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user