feat(gossip): wire automation digest snapshot RPC 73/74 handlers
Emit automation-digest-export-snapshot and -request events from mesh gossip so platform can ingest bodies and respond to targeted fetch requests. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -374,6 +374,12 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.AUDIT_EXPORT_ARCHIVE_REQUEST) {
|
||||
this.emit('audit-export-archive-request', payload)
|
||||
}
|
||||
if (method === RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT) {
|
||||
this.emit('automation-digest-export-snapshot', payload)
|
||||
}
|
||||
if (method === RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT_REQUEST) {
|
||||
this.emit('automation-digest-export-snapshot-request', payload)
|
||||
}
|
||||
if (method === RPC.BOT_INSTALL_UPSERT) {
|
||||
this.emit('bot-install', payload)
|
||||
}
|
||||
@@ -518,6 +524,14 @@ class PearcordGuild extends EventEmitter {
|
||||
this.emit('audit-export-archive-request', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT) {
|
||||
this.emit('automation-digest-export-snapshot', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT_REQUEST) {
|
||||
this.emit('automation-digest-export-snapshot-request', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_ALERT) {
|
||||
this.emit('hook-failure', payload)
|
||||
return
|
||||
@@ -697,6 +711,14 @@ class PearcordGuild extends EventEmitter {
|
||||
broadcastGossip(this, RPC.AUDIT_EXPORT_ARCHIVE_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipAutomationDigestExportSnapshot (payload) {
|
||||
broadcastGossip(this, RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT, payload)
|
||||
}
|
||||
|
||||
gossipAutomationDigestExportSnapshotRequest (payload) {
|
||||
broadcastGossip(this, RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipBotInstall (bot) {
|
||||
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user