@open-wa/wa-automate 4.34.0 → 4.34.1
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/api/Client.js +2 -2
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
@@ -3011,8 +3011,8 @@ class Client {
|
|
3011
3011
|
if ((a === null || a === void 0 ? void 0 : a.stickerMetadata) && typeof (a === null || a === void 0 ? void 0 : a.stickerMetadata) !== "object")
|
3012
3012
|
throw new errors_1.CustomError(errors_1.ERROR_NAME.BAD_STICKER_METADATA, `Received ${typeof (a === null || a === void 0 ? void 0 : a.stickerMetadata)}: ${a === null || a === void 0 ? void 0 : a.stickerMetadata}`);
|
3013
3013
|
}
|
3014
|
-
if (
|
3015
|
-
a.stickerMetadata = { discord: this._createConfig.discord };
|
3014
|
+
if (a.stickerMetadata && ((_a = this._createConfig) === null || _a === void 0 ? void 0 : _a.discord)) {
|
3015
|
+
a.stickerMetadata = Object.assign(Object.assign({}, (a.stickerMetadata || {})), { discord: `${((_b = a.stickerMetadata) === null || _b === void 0 ? void 0 : _b.discord) || this._createConfig.discord}` });
|
3016
3016
|
}
|
3017
3017
|
try {
|
3018
3018
|
const { data } = yield axios_1.default.post(`${((fallback ? pkg.stickerUrl : 'https://sticker-api.openwa.dev') || this._createConfig.stickerServerEndpoint).replace(/\/$/, '')}/${func}`, Object.assign(Object.assign({}, a), { sessionInfo, config: this.getConfig() }), {
|
package/package.json
CHANGED