feat(mesh): gossip message search request/response (v0.8.86)
Wire RPC 77/78 to message-search-request and message-search-response events with gossipMessageSearchRequest/Response helpers. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -374,6 +374,12 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.AUDIT_EXPORT_CSV_SYNC) {
|
||||
this.emit('audit-export-csv-sync', payload)
|
||||
}
|
||||
if (method === RPC.MESSAGE_SEARCH_REQUEST) {
|
||||
this.emit('message-search-request', payload)
|
||||
}
|
||||
if (method === RPC.MESSAGE_SEARCH_RESPONSE) {
|
||||
this.emit('message-search-response', payload)
|
||||
}
|
||||
if (method === RPC.AUDIT_EXPORT_ARCHIVE) {
|
||||
this.emit('audit-export-archive', payload)
|
||||
}
|
||||
@@ -741,6 +747,14 @@ class PearcordGuild extends EventEmitter {
|
||||
broadcastGossip(this, RPC.AUTOMATION_DIGEST_EXPORT_SNAPSHOT_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipMessageSearchRequest (payload) {
|
||||
broadcastGossip(this, RPC.MESSAGE_SEARCH_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipMessageSearchResponse (payload) {
|
||||
broadcastGossip(this, RPC.MESSAGE_SEARCH_RESPONSE, payload)
|
||||
}
|
||||
|
||||
gossipBotInstall (bot) {
|
||||
broadcastGossip(this, RPC.BOT_INSTALL_UPSERT, bot)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user