Difference between revisions of "FBInstant.player.subscribeBotAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3.1<br/> === Description === <br /> Request that the player subscribe the bot associated to the game. The API will reject if the...")
 
Line 5: Line 5:
 
Request that the player subscribe the bot associated to the game. The API will reject if the subscription fails - else, the player will subscribe the game bot.<br />
 
Request that the player subscribe the bot associated to the game. The API will reject if the subscription fails - else, the player will subscribe the game bot.<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.player.subscribeBotAsync(callback,)
+
FBInstant.player.subscribeBotAsync(callback)
 
</source>
 
</source>
'''callback:''' (function) A function that will be called with two arguments: a boolean or nil is the operation failed, and an error code if the function failed. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: a boolean or nil is the operation failed, and an error code if the function failed. ''''''<br/>

Revision as of 10:21, 23 August 2018

Available since: Gideros 2018.3.1

Description


Request that the player subscribe the bot associated to the game. The API will reject if the subscription fails - else, the player will subscribe the game bot.

 FBInstant.player.subscribeBotAsync(callback)

'callback: (function) A function that will be called with two arguments: a boolean or nil is the operation failed, and an error code if the function failed. '