mezon-js 2.8.54 → 2.8.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +4 -4
- package/dist/mezon-js.esm.mjs +4 -4
- package/dist/socket.d.ts +4 -4
- package/package.json +1 -1
- package/socket.ts +6 -6
package/dist/mezon-js.cjs.js
CHANGED
@@ -5058,15 +5058,15 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5058
5058
|
return response.message_typing_event;
|
5059
5059
|
});
|
5060
5060
|
}
|
5061
|
-
writeLastSeenMessage(clan_id, channel_id, mode, message_id,
|
5061
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
|
5062
5062
|
return __async(this, null, function* () {
|
5063
|
-
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id,
|
5063
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
|
5064
5064
|
return response.last_seen_message_event;
|
5065
5065
|
});
|
5066
5066
|
}
|
5067
|
-
writeLastPinMessage(clan_id, channel_id, mode, message_id,
|
5067
|
+
writeLastPinMessage(clan_id, channel_id, mode, message_id, timestamp_seconds, operation) {
|
5068
5068
|
return __async(this, null, function* () {
|
5069
|
-
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id,
|
5069
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds, operation } });
|
5070
5070
|
return response.last_pin_message_event;
|
5071
5071
|
});
|
5072
5072
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5029,15 +5029,15 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5029
5029
|
return response.message_typing_event;
|
5030
5030
|
});
|
5031
5031
|
}
|
5032
|
-
writeLastSeenMessage(clan_id, channel_id, mode, message_id,
|
5032
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp_seconds) {
|
5033
5033
|
return __async(this, null, function* () {
|
5034
|
-
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id,
|
5034
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds } });
|
5035
5035
|
return response.last_seen_message_event;
|
5036
5036
|
});
|
5037
5037
|
}
|
5038
|
-
writeLastPinMessage(clan_id, channel_id, mode, message_id,
|
5038
|
+
writeLastPinMessage(clan_id, channel_id, mode, message_id, timestamp_seconds, operation) {
|
5039
5039
|
return __async(this, null, function* () {
|
5040
|
-
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id,
|
5040
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id, timestamp_seconds, operation } });
|
5041
5041
|
return response.last_pin_message_event;
|
5042
5042
|
});
|
5043
5043
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -504,9 +504,9 @@ export interface Socket {
|
|
504
504
|
/** Send message reaction */
|
505
505
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
|
506
506
|
/** Send last seen message */
|
507
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
507
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
508
508
|
/** Send last pin message */
|
509
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
509
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
510
510
|
/** Send custom user status */
|
511
511
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
512
512
|
/** send voice joined */
|
@@ -647,8 +647,8 @@ export declare class DefaultSocket implements Socket {
|
|
647
647
|
writeChatMessage(clan_id: string, channel_id: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
|
648
648
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
|
649
649
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
650
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
651
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
650
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
|
651
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
652
652
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
653
653
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
654
654
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -746,10 +746,10 @@ export interface Socket {
|
|
746
746
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<ApiMessageReaction>;
|
747
747
|
|
748
748
|
/** Send last seen message */
|
749
|
-
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
749
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number) : Promise<LastSeenMessageEvent>;
|
750
750
|
|
751
751
|
/** Send last pin message */
|
752
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
752
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, operation: number) : Promise<LastPinMessageEvent>;
|
753
753
|
|
754
754
|
/** Send custom user status */
|
755
755
|
writeCustomStatus(clan_id: string, status: string) : Promise<CustomStatusEvent>;
|
@@ -1394,13 +1394,13 @@ export class DefaultSocket implements Socket {
|
|
1394
1394
|
return response.message_typing_event
|
1395
1395
|
}
|
1396
1396
|
|
1397
|
-
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
1398
|
-
const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id,
|
1397
|
+
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent> {
|
1398
|
+
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}});
|
1399
1399
|
return response.last_seen_message_event
|
1400
1400
|
}
|
1401
1401
|
|
1402
|
-
async writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string,
|
1403
|
-
const response = await this.send({last_pin_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id,
|
1402
|
+
async writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent> {
|
1403
|
+
const response = await this.send({last_pin_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp_seconds: timestamp_seconds, operation: operation}});
|
1404
1404
|
return response.last_pin_message_event
|
1405
1405
|
}
|
1406
1406
|
|