mezon-js 2.8.62 → 2.8.63
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/socket.d.ts +1 -0
- package/package.json +1 -1
- package/socket.ts +4 -2
- package/api/api.ts +0 -20099
- package/google/protobuf/struct.ts +0 -485
- package/google/protobuf/timestamp.ts +0 -220
- package/google/protobuf/wrappers.ts +0 -626
- package/rtapi/realtime.ts +0 -7751
package/dist/mezon-js.cjs.js
CHANGED
@@ -4673,7 +4673,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4673
4673
|
} catch (e2) {
|
4674
4674
|
}
|
4675
4675
|
var e = {
|
4676
|
-
id: message.id,
|
4676
|
+
id: message.id || message.channel_message.message_id,
|
4677
4677
|
avatar: message.channel_message.avatar,
|
4678
4678
|
channel_id: message.channel_message.channel_id,
|
4679
4679
|
mode: message.channel_message.mode,
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4644,7 +4644,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4644
4644
|
} catch (e2) {
|
4645
4645
|
}
|
4646
4646
|
var e = {
|
4647
|
-
id: message.id,
|
4647
|
+
id: message.id || message.channel_message.message_id,
|
4648
4648
|
avatar: message.channel_message.avatar,
|
4649
4649
|
channel_id: message.channel_message.channel_id,
|
4650
4650
|
mode: message.channel_message.mode,
|
package/dist/socket.d.ts
CHANGED
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -376,6 +376,8 @@ export interface ChannelUpdatedEvent {
|
|
376
376
|
status: number;
|
377
377
|
// meeting code
|
378
378
|
meeting_code: string;
|
379
|
+
// is error
|
380
|
+
is_error: boolean;
|
379
381
|
}
|
380
382
|
|
381
383
|
export interface ChannelCreatedEvent {
|
@@ -768,7 +770,7 @@ export interface Socket {
|
|
768
770
|
unfollowUsers(user_ids : string[]) : Promise<void>;
|
769
771
|
|
770
772
|
/** Update a chat message on a chat channel in the server. */
|
771
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id
|
773
|
+
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) : Promise<ChannelMessageAck>;
|
772
774
|
|
773
775
|
/** Update the status for the current user online. */
|
774
776
|
updateStatus(status? : string) : Promise<void>;
|
@@ -1040,7 +1042,7 @@ export class DefaultSocket implements Socket {
|
|
1040
1042
|
//console.log("references is invalid", e);
|
1041
1043
|
}
|
1042
1044
|
var e: ChannelMessage = {
|
1043
|
-
id: message.id,
|
1045
|
+
id: message.id || message.channel_message.message_id,
|
1044
1046
|
avatar: message.channel_message.avatar,
|
1045
1047
|
channel_id: message.channel_message.channel_id,
|
1046
1048
|
mode: message.channel_message.mode,
|