@smartico/public-api 0.0.396 → 0.0.398
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.modern.mjs
CHANGED
|
@@ -7009,13 +7009,16 @@ class WSAPIMiniGames extends WSAPIRaffles {
|
|
|
7009
7009
|
* ```
|
|
7010
7010
|
*/
|
|
7011
7011
|
async playMiniGame(template_id, {
|
|
7012
|
-
onUpdate
|
|
7012
|
+
onUpdate,
|
|
7013
|
+
acknowledge = true
|
|
7013
7014
|
} = {}) {
|
|
7014
7015
|
if (typeof onUpdate === 'function') {
|
|
7015
7016
|
this.onUpdateCallback.set(onUpdateContextKey.Saw, onUpdate);
|
|
7016
7017
|
}
|
|
7017
7018
|
const r = await this.api.sawSpinRequest(this.userExtId, template_id);
|
|
7018
|
-
|
|
7019
|
+
if (acknowledge) {
|
|
7020
|
+
await this.api.doAcknowledgeRequest(this.userExtId, r.request_id);
|
|
7021
|
+
}
|
|
7019
7022
|
const o = {
|
|
7020
7023
|
err_code: r.errCode,
|
|
7021
7024
|
err_message: r.errMsg,
|