feat(gossip): broadcast HOOK_FAILURE_ALERT on hook delivery failure
Adds gossipHookFailureAlert() and mesh handler for RPC 67 so peers ingest failed automation hook runs into local HookFailureAlertStore. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -356,6 +356,9 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.APP_EVENT_RECEIPT) {
|
||||
this.emit('app-event-receipt', payload)
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_ALERT) {
|
||||
this.emit('hook-failure', payload)
|
||||
}
|
||||
if (method === RPC.BOT_INSTALL_UPSERT) {
|
||||
this.emit('bot-install', payload)
|
||||
}
|
||||
@@ -631,6 +634,10 @@ class PearcordGuild extends EventEmitter {
|
||||
broadcastGossip(this, RPC.APP_EVENT_RECEIPT, receipt)
|
||||
}
|
||||
|
||||
gossipHookFailureAlert (alert) {
|
||||
broadcastGossip(this, RPC.HOOK_FAILURE_ALERT, alert)
|
||||
}
|
||||
|
||||
gossipBotInstall (bot) {
|
||||
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user