mezon-js 2.8.58 → 2.8.60

Sign up to get free protection for your applications and to get access to all the features.
package/socket.ts CHANGED
@@ -109,6 +109,8 @@ export interface UserChannelAddedEvent {
109
109
  clan_id: string;
110
110
  // the channel type
111
111
  channel_type: number;
112
+ // is public
113
+ is_public: boolean;
112
114
  }
113
115
 
114
116
  export interface AddUsers {
@@ -781,7 +783,7 @@ export interface Socket {
781
783
  writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<ApiMessageReaction>;
782
784
 
783
785
  /** Send last seen message */
784
- writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
786
+ writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
785
787
 
786
788
  /** Send last pin message */
787
789
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
@@ -1445,8 +1447,8 @@ export class DefaultSocket implements Socket {
1445
1447
  return response.message_typing_event
1446
1448
  }
1447
1449
 
1448
- async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
1449
- const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, is_public: is_public, message_id: message_id, timestamp_seconds: timestamp_seconds}});
1450
+ async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
1451
+ const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp_seconds: timestamp_seconds}});
1450
1452
  return response.last_seen_message_event
1451
1453
  }
1452
1454