Skip to main content

blockPlayer

Block another player of the app: nothing of any kind (voice, video, text, direct messages) passes between the two, either way, enforced by the realtime servers for every session of both within a second, and hubs can ask (players.blocked). It also removes any contact or request between them. The blocked player is not told, and its contact requests to the caller are dropped. Blocking again changes nothing. At most 1,000 blocks per app (SOCIAL_LIMIT_REACHED). NOT_FOUND for a player the app does not know. Game plane: send the app-scoped token for this app to the app’s datacenter.

blockPlayer(
appId: BigInt!
userId: BigInt!
): PlayerBlock!

Arguments​

blockPlayer.appId ● BigInt! non-null scalar​

The app.

blockPlayer.userId ● BigInt! non-null scalar​

The player to block.

Type​

PlayerBlock object​

A player the caller blocked in the app. Nothing of any kind passes between the two, either way, while the block stands; the blocked player is not told.