mezon-js 2.8.38 → 2.8.39
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +2 -0
- package/dist/api.gen.d.ts +1 -0
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +1 -1
- package/package.json +1 -1
- package/socket.ts +2 -2
package/api.gen.ts
CHANGED
package/dist/api.gen.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -5015,9 +5015,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5015
5015
|
unfollowUsers(user_ids) {
|
5016
5016
|
return this.send({ status_unfollow: { user_ids } });
|
5017
5017
|
}
|
5018
|
-
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments,
|
5018
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, hideEditted) {
|
5019
5019
|
return __async(this, null, function* () {
|
5020
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode,
|
5020
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, hideEditted } });
|
5021
5021
|
return response.channel_message_ack;
|
5022
5022
|
});
|
5023
5023
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4986,9 +4986,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4986
4986
|
unfollowUsers(user_ids) {
|
4987
4987
|
return this.send({ status_unfollow: { user_ids } });
|
4988
4988
|
}
|
4989
|
-
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments,
|
4989
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, hideEditted) {
|
4990
4990
|
return __async(this, null, function* () {
|
4991
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode,
|
4991
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, hideEditted } });
|
4992
4992
|
return response.channel_message_ack;
|
4993
4993
|
});
|
4994
4994
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -607,7 +607,7 @@ export declare class DefaultSocket implements Socket {
|
|
607
607
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
608
608
|
sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
|
609
609
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
610
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>,
|
610
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck>;
|
611
611
|
updateStatus(status?: string): Promise<void>;
|
612
612
|
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>;
|
613
613
|
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>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1301,8 +1301,8 @@ export class DefaultSocket implements Socket {
|
|
1301
1301
|
return this.send({status_unfollow: {user_ids: user_ids}});
|
1302
1302
|
}
|
1303
1303
|
|
1304
|
-
async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>,
|
1305
|
-
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode,
|
1304
|
+
async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean): Promise<ChannelMessageAck> {
|
1305
|
+
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, hideEditted: hideEditted}});
|
1306
1306
|
return response.channel_message_ack;
|
1307
1307
|
}
|
1308
1308
|
|