mezon-js 2.8.58 → 2.8.59
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
@@ -5038,9 +5038,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5038
5038
|
return response.message_typing_event;
|
5039
5039
|
});
|
5040
5040
|
}
|
5041
|
-
writeLastSeenMessage(clan_id, channel_id, mode,
|
5041
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
|
5042
5042
|
return __async(this, null, function* () {
|
5043
|
-
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode,
|
5043
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
|
5044
5044
|
return response.last_seen_message_event;
|
5045
5045
|
});
|
5046
5046
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5009,9 +5009,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5009
5009
|
return response.message_typing_event;
|
5010
5010
|
});
|
5011
5011
|
}
|
5012
|
-
writeLastSeenMessage(clan_id, channel_id, mode,
|
5012
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
|
5013
5013
|
return __async(this, null, function* () {
|
5014
|
-
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode,
|
5014
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
|
5015
5015
|
return response.last_seen_message_event;
|
5016
5016
|
});
|
5017
5017
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -523,7 +523,7 @@ export interface Socket {
|
|
523
523
|
/** Send message reaction */
|
524
524
|
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>;
|
525
525
|
/** Send last seen message */
|
526
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
526
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
527
527
|
/** Send last pin message */
|
528
528
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
529
529
|
/** Send custom user status */
|
@@ -670,7 +670,7 @@ export declare class DefaultSocket implements Socket {
|
|
670
670
|
writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
|
671
671
|
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>;
|
672
672
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
673
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
673
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
674
674
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
675
675
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
676
676
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -781,7 +781,7 @@ export interface Socket {
|
|
781
781
|
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
782
|
|
783
783
|
/** Send last seen message */
|
784
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
784
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
|
785
785
|
|
786
786
|
/** Send last pin message */
|
787
787
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
|
@@ -1445,8 +1445,8 @@ export class DefaultSocket implements Socket {
|
|
1445
1445
|
return response.message_typing_event
|
1446
1446
|
}
|
1447
1447
|
|
1448
|
-
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number,
|
1449
|
-
const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode,
|
1448
|
+
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, 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, message_id: message_id, timestamp_seconds: timestamp_seconds}});
|
1450
1450
|
return response.last_seen_message_event
|
1451
1451
|
}
|
1452
1452
|
|