diff --git a/index.js b/index.js index 6d20c37..4951841 100644 --- a/index.js +++ b/index.js @@ -2700,6 +2700,45 @@ async function dispatchUiMessage (platform, msg, hooks = {}) { } return true } + if (t === 'permission-csv-modal-open') { + pushState() + send({ type: 'permission-csv-modal-opened' }) + return true + } + if (t === 'sync-role-override-csv') { + const out = await platform.pushRoleOverrideCsvToMesh() + pushState() + send({ type: 'role-override-csv-synced', ...out }) + if (platform.mode === 'guild' && platform.activeChannelId) { + send({ + type: 'composer-focus-channel', + channelId: platform.activeChannelId + }) + } + return true + } + if (t === 'clear-role-override-csv') { + await platform.clearRoleOverrideCsvExports() + pushState() + if (platform.mode === 'guild' && platform.activeChannelId) { + send({ + type: 'composer-focus-channel', + channelId: platform.activeChannelId + }) + } + return true + } + if (t === 'push-effective-permission-export-csv') { + await platform.pushEffectivePermissionExportToMesh() + pushState() + if (platform.mode === 'guild' && platform.activeChannelId) { + send({ + type: 'composer-focus-channel', + channelId: platform.activeChannelId + }) + } + return true + } if (t === 'push-vanity-url-export-csv') { await platform.pushVanityUrlExportToMesh() pushState()