Forward boostsEnabled in update-guild-settings IPC and enable boosts in UI flow scenario.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -1241,7 +1241,8 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
await platform.updateGuildSettings({
|
await platform.updateGuildSettings({
|
||||||
name: msg.name,
|
name: msg.name,
|
||||||
iconHash: msg.iconHash,
|
iconHash: msg.iconHash,
|
||||||
nsfwGateEnabled: msg.nsfwGateEnabled
|
nsfwGateEnabled: msg.nsfwGateEnabled,
|
||||||
|
boostsEnabled: msg.boostsEnabled
|
||||||
})
|
})
|
||||||
pushState()
|
pushState()
|
||||||
if (platform.activeChannelId && platform.mode === 'guild') {
|
if (platform.activeChannelId && platform.mode === 'guild') {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ async function runFullUiFlowScenario (platform) {
|
|||||||
type: 'set-automod-config',
|
type: 'set-automod-config',
|
||||||
config: { enabled: true, maxMentions: 4, blockInvites: true }
|
config: { enabled: true, maxMentions: 4, blockInvites: true }
|
||||||
})
|
})
|
||||||
|
await ipc(platform, { type: 'update-guild-settings', boostsEnabled: true })
|
||||||
await ipc(platform, { type: 'add-guild-boost', amount: 1 })
|
await ipc(platform, { type: 'add-guild-boost', amount: 1 })
|
||||||
await ipc(platform, { type: 'set-presence', status: 'idle', customStatus: 'smoke testing' })
|
await ipc(platform, { type: 'set-presence', status: 'idle', customStatus: 'smoke testing' })
|
||||||
view = await platform.view()
|
view = await platform.view()
|
||||||
|
|||||||
Reference in New Issue
Block a user