mezon-js 2.12.55 → 2.12.56
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 +4 -2
- package/dist/mezon-js.esm.mjs +4 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +7 -1
package/dist/mezon-js.cjs.js
CHANGED
@@ -7739,7 +7739,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7739
7739
|
}
|
7740
7740
|
});
|
7741
7741
|
}
|
7742
|
-
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id) {
|
7742
|
+
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id, mentions, references) {
|
7743
7743
|
return __async(this, null, function* () {
|
7744
7744
|
const response = yield this.send({
|
7745
7745
|
channel_message_remove: {
|
@@ -7749,7 +7749,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7749
7749
|
message_id,
|
7750
7750
|
is_public,
|
7751
7751
|
has_attachment,
|
7752
|
-
topic_id
|
7752
|
+
topic_id,
|
7753
|
+
mentions,
|
7754
|
+
references
|
7753
7755
|
}
|
7754
7756
|
});
|
7755
7757
|
return response.channel_message_ack;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7705,7 +7705,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7705
7705
|
}
|
7706
7706
|
});
|
7707
7707
|
}
|
7708
|
-
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id) {
|
7708
|
+
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id, mentions, references) {
|
7709
7709
|
return __async(this, null, function* () {
|
7710
7710
|
const response = yield this.send({
|
7711
7711
|
channel_message_remove: {
|
@@ -7715,7 +7715,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7715
7715
|
message_id,
|
7716
7716
|
is_public,
|
7717
7717
|
has_attachment,
|
7718
|
-
topic_id
|
7718
|
+
topic_id,
|
7719
|
+
mentions,
|
7720
|
+
references
|
7719
7721
|
}
|
7720
7722
|
});
|
7721
7723
|
return response.channel_message_ack;
|
package/dist/socket.d.ts
CHANGED
@@ -894,7 +894,7 @@ export interface Socket {
|
|
894
894
|
/** handle user join/leave channel voice on the server. */
|
895
895
|
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
|
896
896
|
/** Remove a chat message from a chat channel on the server. */
|
897
|
-
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string): Promise<ChannelMessageAck>;
|
897
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
|
898
898
|
/** Execute an RPC function to the server. */
|
899
899
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
900
900
|
/** Unfollow one or more users from their status updates. */
|
@@ -1115,7 +1115,7 @@ export declare class DefaultSocket implements Socket {
|
|
1115
1115
|
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
1116
1116
|
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
|
1117
1117
|
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
1118
|
-
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string): Promise<ChannelMessageAck>;
|
1118
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
|
1119
1119
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
1120
1120
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
1121
1121
|
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1386,7 +1386,9 @@ export interface Socket {
|
|
1386
1386
|
is_public: boolean,
|
1387
1387
|
message_id: string,
|
1388
1388
|
has_attachment?: boolean,
|
1389
|
-
topic_id?: string
|
1389
|
+
topic_id?: string,
|
1390
|
+
mentions?:string,
|
1391
|
+
references?: string
|
1390
1392
|
): Promise<ChannelMessageAck>;
|
1391
1393
|
|
1392
1394
|
/** Execute an RPC function to the server. */
|
@@ -2595,6 +2597,8 @@ export class DefaultSocket implements Socket {
|
|
2595
2597
|
message_id: string,
|
2596
2598
|
has_attachment?: boolean,
|
2597
2599
|
topic_id?: string,
|
2600
|
+
mentions?: string,
|
2601
|
+
references?: string
|
2598
2602
|
): Promise<ChannelMessageAck> {
|
2599
2603
|
const response = await this.send({
|
2600
2604
|
channel_message_remove: {
|
@@ -2605,6 +2609,8 @@ export class DefaultSocket implements Socket {
|
|
2605
2609
|
is_public: is_public,
|
2606
2610
|
has_attachment: has_attachment,
|
2607
2611
|
topic_id: topic_id,
|
2612
|
+
mentions: mentions,
|
2613
|
+
references: references
|
2608
2614
|
},
|
2609
2615
|
});
|
2610
2616
|
|