mezon-js 2.7.69 → 2.7.70
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +3 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -4816,9 +4816,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4816
4816
|
return response.last_seen_message_event;
|
4817
4817
|
});
|
4818
4818
|
}
|
4819
|
-
writeLastPinMessage(channel_id, mode, message_id, timestamp) {
|
4819
|
+
writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
|
4820
4820
|
return __async(this, null, function* () {
|
4821
|
-
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp } });
|
4821
|
+
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
|
4822
4822
|
return response.last_pin_message_event;
|
4823
4823
|
});
|
4824
4824
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4787,9 +4787,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4787
4787
|
return response.last_seen_message_event;
|
4788
4788
|
});
|
4789
4789
|
}
|
4790
|
-
writeLastPinMessage(channel_id, mode, message_id, timestamp) {
|
4790
|
+
writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
|
4791
4791
|
return __async(this, null, function* () {
|
4792
|
-
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp } });
|
4792
|
+
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
|
4793
4793
|
return response.last_pin_message_event;
|
4794
4794
|
});
|
4795
4795
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -416,7 +416,7 @@ export interface Socket {
|
|
416
416
|
/** Send last seen message */
|
417
417
|
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
418
418
|
/** Send last pin message */
|
419
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastPinMessageEvent>;
|
419
|
+
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
420
420
|
/** send voice joined */
|
421
421
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
422
422
|
/** send voice leaved */
|
@@ -522,7 +522,7 @@ export declare class DefaultSocket implements Socket {
|
|
522
522
|
writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
|
523
523
|
writeMessageTyping(channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
524
524
|
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
525
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastPinMessageEvent>;
|
525
|
+
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
526
526
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
527
527
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
528
528
|
private pingPong;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -572,7 +572,7 @@ export interface Socket {
|
|
572
572
|
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
|
573
573
|
|
574
574
|
/** Send last pin message */
|
575
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastPinMessageEvent>;
|
575
|
+
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent>;
|
576
576
|
|
577
577
|
/** send voice joined */
|
578
578
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string) : Promise<VoiceJoinedEvent>;
|
@@ -1084,8 +1084,8 @@ export class DefaultSocket implements Socket {
|
|
1084
1084
|
return response.last_seen_message_event
|
1085
1085
|
}
|
1086
1086
|
|
1087
|
-
async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastPinMessageEvent> {
|
1088
|
-
const response = await this.send({last_pin_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp}});
|
1087
|
+
async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent> {
|
1088
|
+
const response = await this.send({last_pin_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp, operation: operation}});
|
1089
1089
|
return response.last_pin_message_event
|
1090
1090
|
}
|
1091
1091
|
|