mezon-js 2.8.19 → 2.8.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -4755,27 +4755,22 @@ var _DefaultSocket = class _DefaultSocket {
4755
4755
  try {
4756
4756
  content = JSON.parse(message.channel_message.content);
4757
4757
  } catch (e2) {
4758
- console.log("content is invalid", e2);
4759
4758
  }
4760
4759
  try {
4761
4760
  reactions = JSON.parse(message.channel_message.reactions);
4762
4761
  } catch (e2) {
4763
- console.log("reactions is invalid", e2);
4764
4762
  }
4765
4763
  try {
4766
4764
  mentions = JSON.parse(message.channel_message.mentions);
4767
4765
  } catch (e2) {
4768
- console.log("mentions is invalid", e2);
4769
4766
  }
4770
4767
  try {
4771
4768
  attachments = JSON.parse(message.channel_message.attachments);
4772
4769
  } catch (e2) {
4773
- console.log("attachments is invalid", e2);
4774
4770
  }
4775
4771
  try {
4776
4772
  references = JSON.parse(message.channel_message.references);
4777
4773
  } catch (e2) {
4778
- console.log("references is invalid", e2);
4779
4774
  }
4780
4775
  var e = {
4781
4776
  avatar: message.channel_message.avatar,
@@ -4726,27 +4726,22 @@ var _DefaultSocket = class _DefaultSocket {
4726
4726
  try {
4727
4727
  content = JSON.parse(message.channel_message.content);
4728
4728
  } catch (e2) {
4729
- console.log("content is invalid", e2);
4730
4729
  }
4731
4730
  try {
4732
4731
  reactions = JSON.parse(message.channel_message.reactions);
4733
4732
  } catch (e2) {
4734
- console.log("reactions is invalid", e2);
4735
4733
  }
4736
4734
  try {
4737
4735
  mentions = JSON.parse(message.channel_message.mentions);
4738
4736
  } catch (e2) {
4739
- console.log("mentions is invalid", e2);
4740
4737
  }
4741
4738
  try {
4742
4739
  attachments = JSON.parse(message.channel_message.attachments);
4743
4740
  } catch (e2) {
4744
- console.log("attachments is invalid", e2);
4745
4741
  }
4746
4742
  try {
4747
4743
  references = JSON.parse(message.channel_message.references);
4748
4744
  } catch (e2) {
4749
- console.log("references is invalid", e2);
4750
4745
  }
4751
4746
  var e = {
4752
4747
  avatar: message.channel_message.avatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.19",
3
+ "version": "2.8.20",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -875,27 +875,27 @@ export class DefaultSocket implements Socket {
875
875
  try {
876
876
  content = JSON.parse(message.channel_message.content);
877
877
  } catch(e) {
878
- console.log("content is invalid", e)
878
+ //console.log("content is invalid", e)
879
879
  }
880
880
  try {
881
881
  reactions = JSON.parse(message.channel_message.reactions);
882
882
  } catch(e) {
883
- console.log("reactions is invalid", e)
883
+ //console.log("reactions is invalid", e)
884
884
  }
885
885
  try {
886
886
  mentions = JSON.parse(message.channel_message.mentions);
887
887
  } catch(e) {
888
- console.log("mentions is invalid", e)
888
+ //console.log("mentions is invalid", e)
889
889
  }
890
890
  try {
891
891
  attachments = JSON.parse(message.channel_message.attachments);
892
892
  } catch(e) {
893
- console.log("attachments is invalid", e)
893
+ //console.log("attachments is invalid", e)
894
894
  }
895
895
  try {
896
896
  references = JSON.parse(message.channel_message.references);
897
897
  } catch(e) {
898
- console.log("references is invalid", e);
898
+ //console.log("references is invalid", e);
899
899
  }
900
900
  var e: ChannelMessageEvent = {
901
901
  avatar: message.channel_message.avatar,