mezon-js 2.8.27 → 2.8.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -3
- package/package.json +1 -1
- package/socket.ts +4 -4
package/dist/mezon-js.cjs.js
CHANGED
@@ -5127,9 +5127,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5127
5127
|
updateStatus(status) {
|
5128
5128
|
return this.send({ status_update: { status } });
|
5129
5129
|
}
|
5130
|
-
writeChatMessage(clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone,
|
5130
|
+
writeChatMessage(clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5131
5131
|
return __async(this, null, function* () {
|
5132
|
-
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone,
|
5132
|
+
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5133
5133
|
return response.channel_message_ack;
|
5134
5134
|
});
|
5135
5135
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5098,9 +5098,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5098
5098
|
updateStatus(status) {
|
5099
5099
|
return this.send({ status_update: { status } });
|
5100
5100
|
}
|
5101
|
-
writeChatMessage(clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone,
|
5101
|
+
writeChatMessage(clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar) {
|
5102
5102
|
return __async(this, null, function* () {
|
5103
|
-
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone,
|
5103
|
+
const response = yield this.send({ channel_message_send: { clan_id, channel_id, mode, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar } });
|
5104
5104
|
return response.channel_message_ack;
|
5105
5105
|
});
|
5106
5106
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -255,7 +255,7 @@ interface ChannelMessageSend {
|
|
255
255
|
attachments?: Array<MessageAttachmentEvent>;
|
256
256
|
anonymous_message?: boolean;
|
257
257
|
mention_everyone?: boolean;
|
258
|
-
|
258
|
+
avatar: string;
|
259
259
|
};
|
260
260
|
}
|
261
261
|
/** Update a message previously sent to a realtime chat channel. */
|
@@ -528,7 +528,7 @@ export interface Socket {
|
|
528
528
|
/** Update the status for the current user online. */
|
529
529
|
updateStatus(status?: string): Promise<void>;
|
530
530
|
/** Send a chat message to a chat channel on the server. */
|
531
|
-
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,
|
531
|
+
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>;
|
532
532
|
/** Send message typing */
|
533
533
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
534
534
|
/** Send message reaction */
|
@@ -664,7 +664,7 @@ export declare class DefaultSocket implements Socket {
|
|
664
664
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
665
665
|
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>): Promise<ChannelMessageAck>;
|
666
666
|
updateStatus(status?: string): Promise<void>;
|
667
|
-
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,
|
667
|
+
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>;
|
668
668
|
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<MessageReactionEvent>;
|
669
669
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
670
670
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -364,7 +364,7 @@ interface ChannelMessageSend {
|
|
364
364
|
//
|
365
365
|
mention_everyone?: boolean;
|
366
366
|
//
|
367
|
-
|
367
|
+
avatar: string;
|
368
368
|
};
|
369
369
|
}
|
370
370
|
|
@@ -770,7 +770,7 @@ export interface Socket {
|
|
770
770
|
updateStatus(status? : string) : Promise<void>;
|
771
771
|
|
772
772
|
/** Send a chat message to a chat channel on the server. */
|
773
|
-
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,
|
773
|
+
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>;
|
774
774
|
|
775
775
|
/** Send message typing */
|
776
776
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number) : Promise<MessageTypingEvent>;
|
@@ -1383,8 +1383,8 @@ export class DefaultSocket implements Socket {
|
|
1383
1383
|
return this.send({status_update: {status: status}});
|
1384
1384
|
}
|
1385
1385
|
|
1386
|
-
async 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,
|
1387
|
-
const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, mode: mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone:mention_everyone,
|
1386
|
+
async 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> {
|
1387
|
+
const response = await this.send({channel_message_send: {clan_id: clan_id, channel_id: channel_id, mode: mode, content: content, mentions: mentions, attachments: attachments, references: references, anonymous_message: anonymous_message, mention_everyone: mention_everyone, avatar: avatar}});
|
1388
1388
|
return response.channel_message_ack;
|
1389
1389
|
}
|
1390
1390
|
|