mezon-js 2.12.42 → 2.12.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mezon-js.cjs.js +8 -2
- package/dist/mezon-js.esm.mjs +8 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +32 -2
package/dist/mezon-js.cjs.js
CHANGED
@@ -7875,7 +7875,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7875
7875
|
return response.last_seen_message_event;
|
7876
7876
|
});
|
7877
7877
|
}
|
7878
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
7878
|
+
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
|
7879
7879
|
return __async(this, null, function* () {
|
7880
7880
|
const response = yield this.send({
|
7881
7881
|
last_pin_message_event: {
|
@@ -7885,7 +7885,13 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7885
7885
|
is_public,
|
7886
7886
|
message_id,
|
7887
7887
|
timestamp_seconds,
|
7888
|
-
operation
|
7888
|
+
operation,
|
7889
|
+
message_sender_avatar,
|
7890
|
+
message_sender_id,
|
7891
|
+
message_sender_username,
|
7892
|
+
message_content,
|
7893
|
+
message_attachment,
|
7894
|
+
message_created_time
|
7889
7895
|
}
|
7890
7896
|
});
|
7891
7897
|
return response.last_pin_message_event;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7841,7 +7841,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7841
7841
|
return response.last_seen_message_event;
|
7842
7842
|
});
|
7843
7843
|
}
|
7844
|
-
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
|
7844
|
+
writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
|
7845
7845
|
return __async(this, null, function* () {
|
7846
7846
|
const response = yield this.send({
|
7847
7847
|
last_pin_message_event: {
|
@@ -7851,7 +7851,13 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7851
7851
|
is_public,
|
7852
7852
|
message_id,
|
7853
7853
|
timestamp_seconds,
|
7854
|
-
operation
|
7854
|
+
operation,
|
7855
|
+
message_sender_avatar,
|
7856
|
+
message_sender_id,
|
7857
|
+
message_sender_username,
|
7858
|
+
message_content,
|
7859
|
+
message_attachment,
|
7860
|
+
message_created_time
|
7855
7861
|
}
|
7856
7862
|
});
|
7857
7863
|
return response.last_pin_message_event;
|
package/dist/socket.d.ts
CHANGED
@@ -887,7 +887,7 @@ export interface Socket {
|
|
887
887
|
/** Send last seen message */
|
888
888
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
889
889
|
/** Send last pin message */
|
890
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
890
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
891
891
|
/** Send custom user status */
|
892
892
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
893
893
|
setHeartbeatTimeoutMs(ms: number): void;
|
@@ -1094,7 +1094,7 @@ export declare class DefaultSocket implements Socket {
|
|
1094
1094
|
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, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
|
1095
1095
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
|
1096
1096
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
1097
|
-
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
1097
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
1098
1098
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
1099
1099
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
1100
1100
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1450,7 +1450,19 @@ export interface Socket {
|
|
1450
1450
|
is_public: boolean,
|
1451
1451
|
message_id: string,
|
1452
1452
|
timestamp_seconds: number,
|
1453
|
-
operation: number
|
1453
|
+
operation: number,
|
1454
|
+
// avatar
|
1455
|
+
message_sender_avatar: string,
|
1456
|
+
// message sender id
|
1457
|
+
message_sender_id: string,
|
1458
|
+
// message sender username
|
1459
|
+
message_sender_username: string,
|
1460
|
+
// message content
|
1461
|
+
message_content: string,
|
1462
|
+
// attachment
|
1463
|
+
message_attachment: string,
|
1464
|
+
// create time
|
1465
|
+
message_created_time: string,
|
1454
1466
|
): Promise<LastPinMessageEvent>;
|
1455
1467
|
|
1456
1468
|
/** Send custom user status */
|
@@ -2736,7 +2748,19 @@ export class DefaultSocket implements Socket {
|
|
2736
2748
|
is_public: boolean,
|
2737
2749
|
message_id: string,
|
2738
2750
|
timestamp_seconds: number,
|
2739
|
-
operation: number
|
2751
|
+
operation: number,
|
2752
|
+
// avatar
|
2753
|
+
message_sender_avatar: string,
|
2754
|
+
// message sender id
|
2755
|
+
message_sender_id: string,
|
2756
|
+
// message sender username
|
2757
|
+
message_sender_username: string,
|
2758
|
+
// message content
|
2759
|
+
message_content: string,
|
2760
|
+
// attachment
|
2761
|
+
message_attachment: string,
|
2762
|
+
// create time
|
2763
|
+
message_created_time: string,
|
2740
2764
|
): Promise<LastPinMessageEvent> {
|
2741
2765
|
const response = await this.send({
|
2742
2766
|
last_pin_message_event: {
|
@@ -2747,6 +2771,12 @@ export class DefaultSocket implements Socket {
|
|
2747
2771
|
message_id: message_id,
|
2748
2772
|
timestamp_seconds: timestamp_seconds,
|
2749
2773
|
operation: operation,
|
2774
|
+
message_sender_avatar: message_sender_avatar,
|
2775
|
+
message_sender_id: message_sender_id,
|
2776
|
+
message_sender_username: message_sender_username,
|
2777
|
+
message_content: message_content,
|
2778
|
+
message_attachment: message_attachment,
|
2779
|
+
message_created_time: message_created_time,
|
2750
2780
|
},
|
2751
2781
|
});
|
2752
2782
|
return response.last_pin_message_event;
|