Files
pearcord-platform/mixins/json-export/ban-json-mixin.js
T
Raven ScottandCursor a5dba86570 refactor(platform): organize mixins into category directories
Move 136 prototype mixins under mixins/domain, json-export, and
runtime/* so the package root stays navigable. Manifest assign order
is unchanged; apply-platform-mixins and runtime registry paths updated.

Co-authored-by: Cursor <[email protected]>
2026-06-03 17:42:26 -04:00

35 lines
1.3 KiB
JavaScript

'use strict'
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
const banJsonMixin = createJsonExportDualHealMixin({
gossipEntries: [
{ method: '_shouldGossipBanRegistryJson', keysField: '_banRegistryJsonGossipKeys', initMethod: '_initBanRegistryJsonMixinState' },
{ method: '_shouldGossipAutomodRuleExportJson', gossipHashPrefix: 'effective:', keysField: '_automodRuleRegistryJsonGossipKeys', initMethod: '_initAutomodRuleJsonMixinState' },
],
heals: [
{
watermarkField: '_banJsonHealWatermark',
shouldGossipMethod: '_shouldGossipBanRegistryJson',
healMethod: '_healBanRegistryExportCursorOnPartition',
spanKind: 'ban.json',
healContext: 'heal.ban',
countField: 'guildBanJsonCount',
bridgeKind: 'ban.json',
listExportsMethod: 'listBanRegistryJsonExports'
},
{
watermarkField: '_automodRuleJsonHealWatermark',
shouldGossipMethod: '_shouldGossipAutomodRuleExportJson',
healMethod: '_healAutomodRuleExportCursorOnPartition',
spanKind: 'ban.json',
healContext: 'heal.automod',
countField: 'guildBanJsonCount',
bridgeKind: 'ban.json',
listExportsMethod: 'listAutomodRuleExportJsonExports'
}
]
})
module.exports = { banJsonMixin }