mezon-js 2.7.10 → 2.7.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -2572,7 +2572,7 @@ var MezonApi = class {
2572
2572
  }
2573
2573
  /** */
2574
2574
  getListPermission(bearerToken, options = {}) {
2575
- const urlPath = "/v2/listpermission";
2575
+ const urlPath = "/v2/permissions";
2576
2576
  const queryParams = /* @__PURE__ */ new Map();
2577
2577
  let bodyJson = "";
2578
2578
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -3592,8 +3592,6 @@ var _DefaultSocket = class _DefaultSocket {
3592
3592
  this.onmessagetyping(message.message_typing_event);
3593
3593
  } else if (message.message_reaction_event) {
3594
3594
  this.onmessagereaction(message.message_reaction_event);
3595
- } else if (message.message_deleted_event) {
3596
- this.onmessagedeleted(message.message_deleted_event);
3597
3595
  } else if (message.channel_presence_event) {
3598
3596
  this.onchannelpresence(message.channel_presence_event);
3599
3597
  } else if (message.party_data) {
@@ -3681,11 +3679,6 @@ var _DefaultSocket = class _DefaultSocket {
3681
3679
  console.log(messagereaction);
3682
3680
  }
3683
3681
  }
3684
- onmessagedeleted(messagedeleted) {
3685
- if (this.verbose && window && window.console) {
3686
- console.log(messagedeleted);
3687
- }
3688
- }
3689
3682
  onchannelmessage(channelMessage) {
3690
3683
  if (this.verbose && window && window.console) {
3691
3684
  console.log(channelMessage);
@@ -3926,9 +3919,9 @@ var _DefaultSocket = class _DefaultSocket {
3926
3919
  updateStatus(status) {
3927
3920
  return this.send({ status_update: { status } });
3928
3921
  }
3929
- writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references) {
3922
+ writeChatMessage(clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message) {
3930
3923
  return __async(this, null, function* () {
3931
- const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references } });
3924
+ const response = yield this.send({ channel_message_send: { clan_id, channel_id, channel_label, mode, content, mentions, attachments, references, anonymous_message } });
3932
3925
  return response.channel_message_ack;
3933
3926
  });
3934
3927
  }
@@ -3938,12 +3931,6 @@ var _DefaultSocket = class _DefaultSocket {
3938
3931
  return response.message_reaction_event;
3939
3932
  });
3940
3933
  }
3941
- writeMessageDeleted(channel_id, channel_label, mode, message_id) {
3942
- return __async(this, null, function* () {
3943
- const response = yield this.send({ message_deleted_event: { channel_id, channel_label, mode, message_id } });
3944
- return response.message_deleted_event;
3945
- });
3946
- }
3947
3934
  writeMessageTyping(channel_id, channel_label, mode) {
3948
3935
  return __async(this, null, function* () {
3949
3936
  const response = yield this.send({ message_typing_event: { channel_id, channel_label, mode } });