feat(guild): HOOK_FAILURE_DIGEST_SYNC gossip handler (Phase 99)
Emit hook-failure-digest-sync on inbound RPC 70 and expose gossipHookFailureDigestSync for platform digest mesh push. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -365,6 +365,9 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.AUDIT_EXPORT_SNAPSHOT) {
|
||||
this.emit('audit-export-snapshot', payload)
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_DIGEST_SYNC) {
|
||||
this.emit('hook-failure-digest-sync', payload)
|
||||
}
|
||||
if (method === RPC.BOT_INSTALL_UPSERT) {
|
||||
this.emit('bot-install', payload)
|
||||
}
|
||||
@@ -497,6 +500,10 @@ class PearcordGuild extends EventEmitter {
|
||||
this.emit('audit-export-snapshot', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_DIGEST_SYNC) {
|
||||
this.emit('hook-failure-digest-sync', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_ALERT) {
|
||||
this.emit('hook-failure', payload)
|
||||
return
|
||||
@@ -664,6 +671,10 @@ class PearcordGuild extends EventEmitter {
|
||||
broadcastGossip(this, RPC.AUDIT_EXPORT_SNAPSHOT, payload)
|
||||
}
|
||||
|
||||
gossipHookFailureDigestSync (payload) {
|
||||
broadcastGossip(this, RPC.HOOK_FAILURE_DIGEST_SYNC, payload)
|
||||
}
|
||||
|
||||
gossipBotInstall (bot) {
|
||||
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user