Skip to main content

acceptContact

Accept another player’s contact request: both become each other’s contacts, and both players’ live sessions learn it within a second. NOT_FOUND when that player has not asked. Game plane: send the app-scoped token for this app to the app’s datacenter.

acceptContact(
appId: BigInt!
userId: BigInt!
): PlayerContact!

Arguments​

acceptContact.appId ● BigInt! non-null scalar​

The app.

acceptContact.userId ● BigInt! non-null scalar​

The player whose request to accept.

Type​

PlayerContact object​

Another player in the caller’s contacts list for the app. Contacts are mutual: an accepted contact is in both players’ lists, and it is what a CONTACTS scope admits.