mezon-js 2.14.52 → 2.14.53
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 +2 -3
- package/dist/mezon-js.esm.mjs +2 -3
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +3 -6
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -40372,7 +40372,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
40372
40372
|
unfollowUsers(user_ids) {
|
|
40373
40373
|
return this.send({ status_unfollow: { user_ids } });
|
|
40374
40374
|
}
|
|
40375
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic
|
|
40375
|
+
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
|
|
40376
40376
|
return __async(this, null, function* () {
|
|
40377
40377
|
const response = yield this.send({
|
|
40378
40378
|
channel_message_update: {
|
|
@@ -40386,8 +40386,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
40386
40386
|
is_public,
|
|
40387
40387
|
hide_editted: hideEditted,
|
|
40388
40388
|
topic_id,
|
|
40389
|
-
is_update_msg_topic
|
|
40390
|
-
old_mentions
|
|
40389
|
+
is_update_msg_topic
|
|
40391
40390
|
}
|
|
40392
40391
|
});
|
|
40393
40392
|
return response.channel_message_ack;
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -40337,7 +40337,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
40337
40337
|
unfollowUsers(user_ids) {
|
|
40338
40338
|
return this.send({ status_unfollow: { user_ids } });
|
|
40339
40339
|
}
|
|
40340
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic
|
|
40340
|
+
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
|
|
40341
40341
|
return __async(this, null, function* () {
|
|
40342
40342
|
const response = yield this.send({
|
|
40343
40343
|
channel_message_update: {
|
|
@@ -40351,8 +40351,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
40351
40351
|
is_public,
|
|
40352
40352
|
hide_editted: hideEditted,
|
|
40353
40353
|
topic_id,
|
|
40354
|
-
is_update_msg_topic
|
|
40355
|
-
old_mentions
|
|
40354
|
+
is_update_msg_topic
|
|
40356
40355
|
}
|
|
40357
40356
|
});
|
|
40358
40357
|
return response.channel_message_ack;
|
package/dist/socket.d.ts
CHANGED
|
@@ -943,7 +943,7 @@ export interface Socket {
|
|
|
943
943
|
/** Unfollow one or more users from their status updates. */
|
|
944
944
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
945
945
|
/** Update a chat message on a chat channel in the server. */
|
|
946
|
-
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
|
|
946
|
+
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>;
|
|
947
947
|
/** Update the status for the current user online. */
|
|
948
948
|
updateStatus(status?: string): Promise<void>;
|
|
949
949
|
/** Send a chat message to a chat channel on the server. */
|
|
@@ -1185,7 +1185,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
1185
1185
|
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>;
|
|
1186
1186
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
|
1187
1187
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
1188
|
-
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
|
|
1188
|
+
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>;
|
|
1189
1189
|
updateStatus(status?: string): Promise<void>;
|
|
1190
1190
|
writeQuickMenuEvent(menu_name: string, 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, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
|
|
1191
1191
|
writeEphemeralMessage(receiver_id: string, 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, code?: number, topic_id?: string, id?: string): Promise<ChannelMessageAck>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -1474,8 +1474,7 @@ export interface Socket {
|
|
|
1474
1474
|
attachments?: Array<ApiMessageAttachment>,
|
|
1475
1475
|
hideEditted?: boolean,
|
|
1476
1476
|
topic_id?: string,
|
|
1477
|
-
is_update_msg_topic?: boolean
|
|
1478
|
-
old_mentions?: Uint8Array
|
|
1477
|
+
is_update_msg_topic?: boolean
|
|
1479
1478
|
): Promise<ChannelMessageAck>;
|
|
1480
1479
|
|
|
1481
1480
|
/** Update the status for the current user online. */
|
|
@@ -2839,8 +2838,7 @@ export class DefaultSocket implements Socket {
|
|
|
2839
2838
|
attachments?: Array<ApiMessageAttachment>,
|
|
2840
2839
|
hideEditted?: boolean,
|
|
2841
2840
|
topic_id?: string,
|
|
2842
|
-
is_update_msg_topic?: boolean
|
|
2843
|
-
old_mentions?: Uint8Array
|
|
2841
|
+
is_update_msg_topic?: boolean
|
|
2844
2842
|
): Promise<ChannelMessageAck> {
|
|
2845
2843
|
const response = await this.send({
|
|
2846
2844
|
channel_message_update: {
|
|
@@ -2854,8 +2852,7 @@ export class DefaultSocket implements Socket {
|
|
|
2854
2852
|
is_public: is_public,
|
|
2855
2853
|
hide_editted: hideEditted,
|
|
2856
2854
|
topic_id: topic_id,
|
|
2857
|
-
is_update_msg_topic: is_update_msg_topic
|
|
2858
|
-
old_mentions: old_mentions
|
|
2855
|
+
is_update_msg_topic: is_update_msg_topic
|
|
2859
2856
|
},
|
|
2860
2857
|
});
|
|
2861
2858
|
return response.channel_message_ack;
|