feat(guild): wire AUDIT_EXPORT_ARCHIVE_REQUEST gossip
Emit audit-export-archive-request on RPC 72 in both protomux handlers and add gossipAuditExportArchiveRequest for mesh archive fetch flows. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -371,6 +371,9 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.AUDIT_EXPORT_ARCHIVE) {
|
||||
this.emit('audit-export-archive', payload)
|
||||
}
|
||||
if (method === RPC.AUDIT_EXPORT_ARCHIVE_REQUEST) {
|
||||
this.emit('audit-export-archive-request', payload)
|
||||
}
|
||||
if (method === RPC.BOT_INSTALL_UPSERT) {
|
||||
this.emit('bot-install', payload)
|
||||
}
|
||||
@@ -511,6 +514,10 @@ class PearcordGuild extends EventEmitter {
|
||||
this.emit('audit-export-archive', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.AUDIT_EXPORT_ARCHIVE_REQUEST) {
|
||||
this.emit('audit-export-archive-request', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.HOOK_FAILURE_ALERT) {
|
||||
this.emit('hook-failure', payload)
|
||||
return
|
||||
@@ -686,6 +693,10 @@ class PearcordGuild extends EventEmitter {
|
||||
broadcastGossip(this, RPC.AUDIT_EXPORT_ARCHIVE, payload)
|
||||
}
|
||||
|
||||
gossipAuditExportArchiveRequest (payload) {
|
||||
broadcastGossip(this, RPC.AUDIT_EXPORT_ARCHIVE_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipBotInstall (bot) {
|
||||
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user