mezon-js 2.9.57 → 2.9.58
Sign up to get free protection for your applications and to get access to all the features.
- package/client.ts +5 -5
- package/dist/mezon-js.cjs.js +10 -0
- package/dist/mezon-js.esm.mjs +10 -0
- package/package.json +1 -1
- package/socket.ts +5 -5
package/client.ts
CHANGED
@@ -1399,27 +1399,27 @@ export class Client {
|
|
1399
1399
|
try {
|
1400
1400
|
content = JSON.parse(m.content);
|
1401
1401
|
} catch (e) {
|
1402
|
-
|
1402
|
+
console.log("error parse content", e);
|
1403
1403
|
}
|
1404
1404
|
try {
|
1405
1405
|
reactions = JSON.parse(m.reactions || "[]");
|
1406
1406
|
} catch (e) {
|
1407
|
-
|
1407
|
+
console.log("error parse reactions", e);
|
1408
1408
|
}
|
1409
1409
|
try {
|
1410
1410
|
mentions = JSON.parse(m.mentions || "[]");
|
1411
1411
|
} catch (e) {
|
1412
|
-
|
1412
|
+
console.log("error parse mentions", e);
|
1413
1413
|
}
|
1414
1414
|
try {
|
1415
1415
|
attachments = JSON.parse(m.attachments || "[]");
|
1416
1416
|
} catch (e) {
|
1417
|
-
|
1417
|
+
console.log("error parse attachments", e);
|
1418
1418
|
}
|
1419
1419
|
try {
|
1420
1420
|
references = JSON.parse(m.references || "[]");
|
1421
1421
|
} catch (e) {
|
1422
|
-
|
1422
|
+
console.log("error parse references", e);
|
1423
1423
|
}
|
1424
1424
|
result.messages!.push({
|
1425
1425
|
channel_id: m.channel_id,
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -6293,22 +6293,27 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6293
6293
|
try {
|
6294
6294
|
content = JSON.parse(message.channel_message.content);
|
6295
6295
|
} catch (e2) {
|
6296
|
+
console.log("content is invalid", e2);
|
6296
6297
|
}
|
6297
6298
|
try {
|
6298
6299
|
reactions = JSON.parse(message.channel_message.reactions);
|
6299
6300
|
} catch (e2) {
|
6301
|
+
console.log("reactions is invalid", e2);
|
6300
6302
|
}
|
6301
6303
|
try {
|
6302
6304
|
mentions = JSON.parse(message.channel_message.mentions);
|
6303
6305
|
} catch (e2) {
|
6306
|
+
console.log("mentions is invalid", e2);
|
6304
6307
|
}
|
6305
6308
|
try {
|
6306
6309
|
attachments = JSON.parse(message.channel_message.attachments);
|
6307
6310
|
} catch (e2) {
|
6311
|
+
console.log("attachments is invalid", e2);
|
6308
6312
|
}
|
6309
6313
|
try {
|
6310
6314
|
references = JSON.parse(message.channel_message.references);
|
6311
6315
|
} catch (e2) {
|
6316
|
+
console.log("references is invalid", e2);
|
6312
6317
|
}
|
6313
6318
|
var e = {
|
6314
6319
|
id: message.id || message.channel_message.message_id,
|
@@ -7398,22 +7403,27 @@ var Client = class {
|
|
7398
7403
|
try {
|
7399
7404
|
content = JSON.parse(m.content);
|
7400
7405
|
} catch (e) {
|
7406
|
+
console.log("error parse content", e);
|
7401
7407
|
}
|
7402
7408
|
try {
|
7403
7409
|
reactions = JSON.parse(m.reactions || "[]");
|
7404
7410
|
} catch (e) {
|
7411
|
+
console.log("error parse reactions", e);
|
7405
7412
|
}
|
7406
7413
|
try {
|
7407
7414
|
mentions = JSON.parse(m.mentions || "[]");
|
7408
7415
|
} catch (e) {
|
7416
|
+
console.log("error parse mentions", e);
|
7409
7417
|
}
|
7410
7418
|
try {
|
7411
7419
|
attachments = JSON.parse(m.attachments || "[]");
|
7412
7420
|
} catch (e) {
|
7421
|
+
console.log("error parse attachments", e);
|
7413
7422
|
}
|
7414
7423
|
try {
|
7415
7424
|
references = JSON.parse(m.references || "[]");
|
7416
7425
|
} catch (e) {
|
7426
|
+
console.log("error parse references", e);
|
7417
7427
|
}
|
7418
7428
|
result.messages.push({
|
7419
7429
|
channel_id: m.channel_id,
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -6264,22 +6264,27 @@ var _DefaultSocket = class _DefaultSocket {
|
|
6264
6264
|
try {
|
6265
6265
|
content = JSON.parse(message.channel_message.content);
|
6266
6266
|
} catch (e2) {
|
6267
|
+
console.log("content is invalid", e2);
|
6267
6268
|
}
|
6268
6269
|
try {
|
6269
6270
|
reactions = JSON.parse(message.channel_message.reactions);
|
6270
6271
|
} catch (e2) {
|
6272
|
+
console.log("reactions is invalid", e2);
|
6271
6273
|
}
|
6272
6274
|
try {
|
6273
6275
|
mentions = JSON.parse(message.channel_message.mentions);
|
6274
6276
|
} catch (e2) {
|
6277
|
+
console.log("mentions is invalid", e2);
|
6275
6278
|
}
|
6276
6279
|
try {
|
6277
6280
|
attachments = JSON.parse(message.channel_message.attachments);
|
6278
6281
|
} catch (e2) {
|
6282
|
+
console.log("attachments is invalid", e2);
|
6279
6283
|
}
|
6280
6284
|
try {
|
6281
6285
|
references = JSON.parse(message.channel_message.references);
|
6282
6286
|
} catch (e2) {
|
6287
|
+
console.log("references is invalid", e2);
|
6283
6288
|
}
|
6284
6289
|
var e = {
|
6285
6290
|
id: message.id || message.channel_message.message_id,
|
@@ -7369,22 +7374,27 @@ var Client = class {
|
|
7369
7374
|
try {
|
7370
7375
|
content = JSON.parse(m.content);
|
7371
7376
|
} catch (e) {
|
7377
|
+
console.log("error parse content", e);
|
7372
7378
|
}
|
7373
7379
|
try {
|
7374
7380
|
reactions = JSON.parse(m.reactions || "[]");
|
7375
7381
|
} catch (e) {
|
7382
|
+
console.log("error parse reactions", e);
|
7376
7383
|
}
|
7377
7384
|
try {
|
7378
7385
|
mentions = JSON.parse(m.mentions || "[]");
|
7379
7386
|
} catch (e) {
|
7387
|
+
console.log("error parse mentions", e);
|
7380
7388
|
}
|
7381
7389
|
try {
|
7382
7390
|
attachments = JSON.parse(m.attachments || "[]");
|
7383
7391
|
} catch (e) {
|
7392
|
+
console.log("error parse attachments", e);
|
7384
7393
|
}
|
7385
7394
|
try {
|
7386
7395
|
references = JSON.parse(m.references || "[]");
|
7387
7396
|
} catch (e) {
|
7397
|
+
console.log("error parse references", e);
|
7388
7398
|
}
|
7389
7399
|
result.messages.push({
|
7390
7400
|
channel_id: m.channel_id,
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1104,27 +1104,27 @@ export class DefaultSocket implements Socket {
|
|
1104
1104
|
try {
|
1105
1105
|
content = JSON.parse(message.channel_message.content);
|
1106
1106
|
} catch(e) {
|
1107
|
-
|
1107
|
+
console.log("content is invalid", e)
|
1108
1108
|
}
|
1109
1109
|
try {
|
1110
1110
|
reactions = JSON.parse(message.channel_message.reactions);
|
1111
1111
|
} catch(e) {
|
1112
|
-
|
1112
|
+
console.log("reactions is invalid", e)
|
1113
1113
|
}
|
1114
1114
|
try {
|
1115
1115
|
mentions = JSON.parse(message.channel_message.mentions);
|
1116
1116
|
} catch(e) {
|
1117
|
-
|
1117
|
+
console.log("mentions is invalid", e)
|
1118
1118
|
}
|
1119
1119
|
try {
|
1120
1120
|
attachments = JSON.parse(message.channel_message.attachments);
|
1121
1121
|
} catch(e) {
|
1122
|
-
|
1122
|
+
console.log("attachments is invalid", e)
|
1123
1123
|
}
|
1124
1124
|
try {
|
1125
1125
|
references = JSON.parse(message.channel_message.references);
|
1126
1126
|
} catch(e) {
|
1127
|
-
|
1127
|
+
console.log("references is invalid", e);
|
1128
1128
|
}
|
1129
1129
|
var e: ChannelMessage = {
|
1130
1130
|
id: message.id || message.channel_message.message_id,
|