mezon-js 2.8.6 → 2.8.8
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +2 -2
- package/dist/api.gen.d.ts +2 -2
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +5 -3
- package/package.json +1 -1
- package/socket.ts +6 -4
package/api.gen.ts
CHANGED
package/dist/api.gen.d.ts
CHANGED
@@ -557,8 +557,8 @@ export interface ApiMessageMention {
|
|
557
557
|
/** */
|
558
558
|
export interface ApiMessageReaction {
|
559
559
|
action?: boolean;
|
560
|
-
emoji_id
|
561
|
-
emoji
|
560
|
+
emoji_id: string;
|
561
|
+
emoji: string;
|
562
562
|
id?: string;
|
563
563
|
sender_id?: string;
|
564
564
|
sender_name?: string;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -5096,9 +5096,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5096
5096
|
return response.channel_message_ack;
|
5097
5097
|
});
|
5098
5098
|
}
|
5099
|
-
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
5099
|
+
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5100
5100
|
return __async(this, null, function* () {
|
5101
|
-
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
5101
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5102
5102
|
return response.message_reaction_event;
|
5103
5103
|
});
|
5104
5104
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -5067,9 +5067,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
5067
5067
|
return response.channel_message_ack;
|
5068
5068
|
});
|
5069
5069
|
}
|
5070
|
-
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
5070
|
+
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
|
5071
5071
|
return __async(this, null, function* () {
|
5072
|
-
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
5072
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji_id, emoji, count, message_sender_id, action: action_delete } });
|
5073
5073
|
return response.message_reaction_event;
|
5074
5074
|
});
|
5075
5075
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -127,7 +127,9 @@ export interface MessageReactionEvent {
|
|
127
127
|
sender_id: string;
|
128
128
|
sender_name?: string;
|
129
129
|
sender_avatar?: string;
|
130
|
-
/** Emoji
|
130
|
+
/** Emoji id. */
|
131
|
+
emoji_id: string;
|
132
|
+
/** Emoji shortname. */
|
131
133
|
emoji: string;
|
132
134
|
count: number;
|
133
135
|
action: boolean;
|
@@ -463,7 +465,7 @@ export interface Socket {
|
|
463
465
|
/** Send message typing */
|
464
466
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
465
467
|
/** Send message reaction */
|
466
|
-
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
|
468
|
+
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>;
|
467
469
|
/** Send last seen message */
|
468
470
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
469
471
|
/** Send last pin message */
|
@@ -591,7 +593,7 @@ export declare class DefaultSocket implements Socket {
|
|
591
593
|
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
|
592
594
|
updateStatus(status?: string): Promise<void>;
|
593
595
|
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, notifi_content?: any): Promise<ChannelMessageAck>;
|
594
|
-
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
|
596
|
+
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>;
|
595
597
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
596
598
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
597
599
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -171,7 +171,9 @@ export interface MessageReactionEvent {
|
|
171
171
|
sender_name?: string;
|
172
172
|
//
|
173
173
|
sender_avatar?: string;
|
174
|
-
/** Emoji
|
174
|
+
/** Emoji id. */
|
175
|
+
emoji_id: string;
|
176
|
+
/** Emoji shortname. */
|
175
177
|
emoji: string;
|
176
178
|
// count of emoji
|
177
179
|
count: number;
|
@@ -658,7 +660,7 @@ export interface Socket {
|
|
658
660
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number) : Promise<MessageTypingEvent>;
|
659
661
|
|
660
662
|
/** Send message reaction */
|
661
|
-
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<MessageReactionEvent>;
|
663
|
+
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>;
|
662
664
|
|
663
665
|
/** Send last seen message */
|
664
666
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
|
@@ -1244,8 +1246,8 @@ export class DefaultSocket implements Socket {
|
|
1244
1246
|
return response.channel_message_ack;
|
1245
1247
|
}
|
1246
1248
|
|
1247
|
-
async writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<MessageReactionEvent> {
|
1248
|
-
const response = await this.send({message_reaction_event: {id: id, clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, emoji: emoji, count: count, message_sender_id: message_sender_id, action: action_delete}});
|
1249
|
+
async 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> {
|
1250
|
+
const response = await this.send({message_reaction_event: {id: id, clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, emoji_id: emoji_id, emoji: emoji, count: count, message_sender_id: message_sender_id, action: action_delete}});
|
1249
1251
|
return response.message_reaction_event
|
1250
1252
|
}
|
1251
1253
|
|