Handle GUILD_SYNC_REQUEST gossip and simulateGossip for smokes.
Emit guild-sync-request so platform can schedule owner sync pushes when members connect. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -509,6 +509,9 @@ class PearcordGuild extends EventEmitter {
|
||||
if (method === RPC.GUILD_SYNC) {
|
||||
this.emit('guild-sync', payload)
|
||||
}
|
||||
if (method === RPC.GUILD_SYNC_REQUEST) {
|
||||
this.emit('guild-sync-request', payload)
|
||||
}
|
||||
if (method === RPC.ROLE_UPSERT) {
|
||||
this.emit('guild-role', payload)
|
||||
}
|
||||
@@ -588,6 +591,10 @@ class PearcordGuild extends EventEmitter {
|
||||
this.emit('guild-sync', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.GUILD_SYNC_REQUEST) {
|
||||
this.emit('guild-sync-request', payload)
|
||||
return
|
||||
}
|
||||
if (method === RPC.WORKER_RELEASE_ANNOUNCE) {
|
||||
this.emit('worker-release-hint', payload)
|
||||
return
|
||||
@@ -703,6 +710,10 @@ class PearcordGuild extends EventEmitter {
|
||||
return broadcastGossip(this, RPC.GUILD_SYNC, payload)
|
||||
}
|
||||
|
||||
gossipGuildSyncRequest (payload) {
|
||||
return broadcastGossip(this, RPC.GUILD_SYNC_REQUEST, payload)
|
||||
}
|
||||
|
||||
gossipRoleUpsert (row) {
|
||||
return broadcastGossip(this, RPC.ROLE_UPSERT, row)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user