mezon-js 2.7.70 → 2.7.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +16 -14
- package/dist/mezon-js.esm.mjs +16 -14
- package/dist/socket.d.ts +16 -16
- package/package.json +1 -1
- package/socket.ts +24 -22
package/dist/mezon-js.cjs.js
CHANGED
@@ -4722,11 +4722,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4722
4722
|
return response.clan_join;
|
4723
4723
|
});
|
4724
4724
|
}
|
4725
|
-
joinChat(channel_id, mode, type, persistence, hidden) {
|
4725
|
+
joinChat(clan_id, channel_id, mode, type, persistence, hidden) {
|
4726
4726
|
return __async(this, null, function* () {
|
4727
4727
|
const response = yield this.send(
|
4728
4728
|
{
|
4729
4729
|
channel_join: {
|
4730
|
+
clan_id,
|
4730
4731
|
channel_id,
|
4731
4732
|
mode,
|
4732
4733
|
type,
|
@@ -4738,14 +4739,15 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4738
4739
|
return response.channel;
|
4739
4740
|
});
|
4740
4741
|
}
|
4741
|
-
leaveChat(channel_id, mode) {
|
4742
|
-
return this.send({ channel_leave: { channel_id, mode } });
|
4742
|
+
leaveChat(clan_id, channel_id, mode) {
|
4743
|
+
return this.send({ channel_leave: { clan_id, channel_id, mode } });
|
4743
4744
|
}
|
4744
|
-
removeChatMessage(channel_id, mode, message_id) {
|
4745
|
+
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4745
4746
|
return __async(this, null, function* () {
|
4746
4747
|
const response = yield this.send(
|
4747
4748
|
{
|
4748
4749
|
channel_message_remove: {
|
4750
|
+
clan_id,
|
4749
4751
|
channel_id,
|
4750
4752
|
mode,
|
4751
4753
|
message_id
|
@@ -4783,9 +4785,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4783
4785
|
unfollowUsers(user_ids) {
|
4784
4786
|
return this.send({ status_unfollow: { user_ids } });
|
4785
4787
|
}
|
4786
|
-
updateChatMessage(channel_id, mode, message_id, content) {
|
4788
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content) {
|
4787
4789
|
return __async(this, null, function* () {
|
4788
|
-
const response = yield this.send({ channel_message_update: { channel_id, message_id, content, mode } });
|
4790
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mode } });
|
4789
4791
|
return response.channel_message_ack;
|
4790
4792
|
});
|
4791
4793
|
}
|
@@ -4798,27 +4800,27 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4798
4800
|
return response.channel_message_ack;
|
4799
4801
|
});
|
4800
4802
|
}
|
4801
|
-
writeMessageReaction(id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
4803
|
+
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
4802
4804
|
return __async(this, null, function* () {
|
4803
|
-
const response = yield this.send({ message_reaction_event: { id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
4805
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
4804
4806
|
return response.message_reaction_event;
|
4805
4807
|
});
|
4806
4808
|
}
|
4807
|
-
writeMessageTyping(channel_id, mode) {
|
4809
|
+
writeMessageTyping(clan_id, channel_id, mode) {
|
4808
4810
|
return __async(this, null, function* () {
|
4809
|
-
const response = yield this.send({ message_typing_event: { channel_id, mode } });
|
4811
|
+
const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
|
4810
4812
|
return response.message_typing_event;
|
4811
4813
|
});
|
4812
4814
|
}
|
4813
|
-
writeLastSeenMessage(channel_id, mode, message_id, timestamp) {
|
4815
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp) {
|
4814
4816
|
return __async(this, null, function* () {
|
4815
|
-
const response = yield this.send({ last_seen_message_event: { channel_id, mode, message_id, timestamp } });
|
4817
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp } });
|
4816
4818
|
return response.last_seen_message_event;
|
4817
4819
|
});
|
4818
4820
|
}
|
4819
|
-
writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
|
4821
|
+
writeLastPinMessage(clan_id, channel_id, mode, message_id, timestamp, operation) {
|
4820
4822
|
return __async(this, null, function* () {
|
4821
|
-
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
|
4823
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id, timestamp, operation } });
|
4822
4824
|
return response.last_pin_message_event;
|
4823
4825
|
});
|
4824
4826
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -4693,11 +4693,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4693
4693
|
return response.clan_join;
|
4694
4694
|
});
|
4695
4695
|
}
|
4696
|
-
joinChat(channel_id, mode, type, persistence, hidden) {
|
4696
|
+
joinChat(clan_id, channel_id, mode, type, persistence, hidden) {
|
4697
4697
|
return __async(this, null, function* () {
|
4698
4698
|
const response = yield this.send(
|
4699
4699
|
{
|
4700
4700
|
channel_join: {
|
4701
|
+
clan_id,
|
4701
4702
|
channel_id,
|
4702
4703
|
mode,
|
4703
4704
|
type,
|
@@ -4709,14 +4710,15 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4709
4710
|
return response.channel;
|
4710
4711
|
});
|
4711
4712
|
}
|
4712
|
-
leaveChat(channel_id, mode) {
|
4713
|
-
return this.send({ channel_leave: { channel_id, mode } });
|
4713
|
+
leaveChat(clan_id, channel_id, mode) {
|
4714
|
+
return this.send({ channel_leave: { clan_id, channel_id, mode } });
|
4714
4715
|
}
|
4715
|
-
removeChatMessage(channel_id, mode, message_id) {
|
4716
|
+
removeChatMessage(clan_id, channel_id, mode, message_id) {
|
4716
4717
|
return __async(this, null, function* () {
|
4717
4718
|
const response = yield this.send(
|
4718
4719
|
{
|
4719
4720
|
channel_message_remove: {
|
4721
|
+
clan_id,
|
4720
4722
|
channel_id,
|
4721
4723
|
mode,
|
4722
4724
|
message_id
|
@@ -4754,9 +4756,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4754
4756
|
unfollowUsers(user_ids) {
|
4755
4757
|
return this.send({ status_unfollow: { user_ids } });
|
4756
4758
|
}
|
4757
|
-
updateChatMessage(channel_id, mode, message_id, content) {
|
4759
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content) {
|
4758
4760
|
return __async(this, null, function* () {
|
4759
|
-
const response = yield this.send({ channel_message_update: { channel_id, message_id, content, mode } });
|
4761
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mode } });
|
4760
4762
|
return response.channel_message_ack;
|
4761
4763
|
});
|
4762
4764
|
}
|
@@ -4769,27 +4771,27 @@ var _DefaultSocket = class _DefaultSocket {
|
|
4769
4771
|
return response.channel_message_ack;
|
4770
4772
|
});
|
4771
4773
|
}
|
4772
|
-
writeMessageReaction(id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
4774
|
+
writeMessageReaction(id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action_delete) {
|
4773
4775
|
return __async(this, null, function* () {
|
4774
|
-
const response = yield this.send({ message_reaction_event: { id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
4776
|
+
const response = yield this.send({ message_reaction_event: { id, clan_id, channel_id, mode, message_id, emoji, count, message_sender_id, action: action_delete } });
|
4775
4777
|
return response.message_reaction_event;
|
4776
4778
|
});
|
4777
4779
|
}
|
4778
|
-
writeMessageTyping(channel_id, mode) {
|
4780
|
+
writeMessageTyping(clan_id, channel_id, mode) {
|
4779
4781
|
return __async(this, null, function* () {
|
4780
|
-
const response = yield this.send({ message_typing_event: { channel_id, mode } });
|
4782
|
+
const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
|
4781
4783
|
return response.message_typing_event;
|
4782
4784
|
});
|
4783
4785
|
}
|
4784
|
-
writeLastSeenMessage(channel_id, mode, message_id, timestamp) {
|
4786
|
+
writeLastSeenMessage(clan_id, channel_id, mode, message_id, timestamp) {
|
4785
4787
|
return __async(this, null, function* () {
|
4786
|
-
const response = yield this.send({ last_seen_message_event: { channel_id, mode, message_id, timestamp } });
|
4788
|
+
const response = yield this.send({ last_seen_message_event: { clan_id, channel_id, mode, message_id, timestamp } });
|
4787
4789
|
return response.last_seen_message_event;
|
4788
4790
|
});
|
4789
4791
|
}
|
4790
|
-
writeLastPinMessage(channel_id, mode, message_id, timestamp, operation) {
|
4792
|
+
writeLastPinMessage(clan_id, channel_id, mode, message_id, timestamp, operation) {
|
4791
4793
|
return __async(this, null, function* () {
|
4792
|
-
const response = yield this.send({ last_pin_message_event: { channel_id, mode, message_id, timestamp, operation } });
|
4794
|
+
const response = yield this.send({ last_pin_message_event: { clan_id, channel_id, mode, message_id, timestamp, operation } });
|
4793
4795
|
return response.last_pin_message_event;
|
4794
4796
|
});
|
4795
4797
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -394,29 +394,29 @@ export interface Socket {
|
|
394
394
|
/** Join clan chat */
|
395
395
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
396
396
|
/** Join a chat channel on the server. */
|
397
|
-
joinChat(channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
397
|
+
joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
398
398
|
/** Leave a chat channel on the server. */
|
399
|
-
leaveChat(channel_id: string, mode: number): Promise<void>;
|
399
|
+
leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
|
400
400
|
/** Remove a chat message from a chat channel on the server. */
|
401
|
-
removeChatMessage(channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
401
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
402
402
|
/** Execute an RPC function to the server. */
|
403
403
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
404
404
|
/** Unfollow one or more users from their status updates. */
|
405
405
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
406
406
|
/** Update a chat message on a chat channel in the server. */
|
407
|
-
updateChatMessage(channel_id: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
|
407
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
|
408
408
|
/** Update the status for the current user online. */
|
409
409
|
updateStatus(status?: string): Promise<void>;
|
410
410
|
/** Send a chat message to a chat channel on the server. */
|
411
411
|
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>;
|
412
412
|
/** Send message typing */
|
413
|
-
writeMessageTyping(channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
413
|
+
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
414
414
|
/** Send message reaction */
|
415
|
-
writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
|
415
|
+
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>;
|
416
416
|
/** Send last seen message */
|
417
|
-
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
417
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
418
418
|
/** Send last pin message */
|
419
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
419
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
420
420
|
/** send voice joined */
|
421
421
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
422
422
|
/** send voice leaved */
|
@@ -509,20 +509,20 @@ export declare class DefaultSocket implements Socket {
|
|
509
509
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping, sendTimeout?: number): Promise<any>;
|
510
510
|
followUsers(userIds: string[]): Promise<Status>;
|
511
511
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
512
|
-
joinChat(channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
513
|
-
leaveChat(channel_id: string, mode: number): Promise<void>;
|
514
|
-
removeChatMessage(channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
512
|
+
joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel>;
|
513
|
+
leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void>;
|
514
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck>;
|
515
515
|
removePartyMember(party_id: string, member: Presence): Promise<void>;
|
516
516
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
517
517
|
sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
|
518
518
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
519
|
-
updateChatMessage(channel_id: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
|
519
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any): Promise<ChannelMessageAck>;
|
520
520
|
updateStatus(status?: string): Promise<void>;
|
521
521
|
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>;
|
522
|
-
writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<MessageReactionEvent>;
|
523
|
-
writeMessageTyping(channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
524
|
-
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
525
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
522
|
+
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>;
|
523
|
+
writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
|
524
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string): Promise<LastSeenMessageEvent>;
|
525
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number): Promise<LastPinMessageEvent>;
|
526
526
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
527
527
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
528
528
|
private pingPong;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -539,13 +539,13 @@ export interface Socket {
|
|
539
539
|
joinClanChat(clan_id: string) : Promise<ClanJoin>;
|
540
540
|
|
541
541
|
/** Join a chat channel on the server. */
|
542
|
-
joinChat(channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean) : Promise<Channel>;
|
542
|
+
joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean) : Promise<Channel>;
|
543
543
|
|
544
544
|
/** Leave a chat channel on the server. */
|
545
|
-
leaveChat(channel_id: string, mode: number) : Promise<void>;
|
545
|
+
leaveChat(clan_id: string, channel_id: string, mode: number) : Promise<void>;
|
546
546
|
|
547
547
|
/** Remove a chat message from a chat channel on the server. */
|
548
|
-
removeChatMessage(channel_id: string, mode: number, message_id: string) : Promise<ChannelMessageAck>;
|
548
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string) : Promise<ChannelMessageAck>;
|
549
549
|
|
550
550
|
/** Execute an RPC function to the server. */
|
551
551
|
rpc(id?: string, payload?: string, http_key?: string) : Promise<ApiRpc>
|
@@ -554,7 +554,7 @@ export interface Socket {
|
|
554
554
|
unfollowUsers(user_ids : string[]) : Promise<void>;
|
555
555
|
|
556
556
|
/** Update a chat message on a chat channel in the server. */
|
557
|
-
updateChatMessage(channel_id: string, mode: number, message_id : string, content: any) : Promise<ChannelMessageAck>;
|
557
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any) : Promise<ChannelMessageAck>;
|
558
558
|
|
559
559
|
/** Update the status for the current user online. */
|
560
560
|
updateStatus(status? : string) : Promise<void>;
|
@@ -563,16 +563,16 @@ export interface Socket {
|
|
563
563
|
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>;
|
564
564
|
|
565
565
|
/** Send message typing */
|
566
|
-
writeMessageTyping(channel_id: string, mode: number) : Promise<MessageTypingEvent>;
|
566
|
+
writeMessageTyping(clan_id: string, channel_id: string, mode: number) : Promise<MessageTypingEvent>;
|
567
567
|
|
568
568
|
/** Send message reaction */
|
569
|
-
writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<MessageReactionEvent>;
|
569
|
+
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>;
|
570
570
|
|
571
571
|
/** Send last seen message */
|
572
|
-
writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
|
572
|
+
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent>;
|
573
573
|
|
574
574
|
/** Send last pin message */
|
575
|
-
writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent>;
|
575
|
+
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent>;
|
576
576
|
|
577
577
|
/** send voice joined */
|
578
578
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string) : Promise<VoiceJoinedEvent>;
|
@@ -993,10 +993,11 @@ export class DefaultSocket implements Socket {
|
|
993
993
|
return response.clan_join;
|
994
994
|
}
|
995
995
|
|
996
|
-
async joinChat(channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel> {
|
996
|
+
async joinChat(clan_id: string, channel_id: string, mode: number, type: number, persistence: boolean, hidden: boolean): Promise<Channel> {
|
997
997
|
|
998
998
|
const response = await this.send({
|
999
999
|
channel_join: {
|
1000
|
+
clan_id: clan_id,
|
1000
1001
|
channel_id: channel_id,
|
1001
1002
|
mode: mode,
|
1002
1003
|
type: type,
|
@@ -1009,14 +1010,15 @@ export class DefaultSocket implements Socket {
|
|
1009
1010
|
return response.channel;
|
1010
1011
|
}
|
1011
1012
|
|
1012
|
-
leaveChat(channel_id: string, mode: number): Promise<void> {
|
1013
|
-
return this.send({channel_leave: {channel_id: channel_id, mode:mode}});
|
1013
|
+
leaveChat(clan_id: string, channel_id: string, mode: number): Promise<void> {
|
1014
|
+
return this.send({channel_leave: {clan_id: clan_id, channel_id: channel_id, mode:mode}});
|
1014
1015
|
}
|
1015
1016
|
|
1016
|
-
async removeChatMessage(channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck> {
|
1017
|
+
async removeChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string): Promise<ChannelMessageAck> {
|
1017
1018
|
const response = await this.send(
|
1018
1019
|
{
|
1019
1020
|
channel_message_remove: {
|
1021
|
+
clan_id: clan_id,
|
1020
1022
|
channel_id: channel_id,
|
1021
1023
|
mode: mode,
|
1022
1024
|
message_id: message_id
|
@@ -1055,8 +1057,8 @@ export class DefaultSocket implements Socket {
|
|
1055
1057
|
return this.send({status_unfollow: {user_ids: user_ids}});
|
1056
1058
|
}
|
1057
1059
|
|
1058
|
-
async updateChatMessage(channel_id: string, mode: number, message_id : string, content: any): Promise<ChannelMessageAck> {
|
1059
|
-
const response = await this.send({channel_message_update: {channel_id: channel_id, message_id: message_id, content: content, mode: mode}});
|
1060
|
+
async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any): Promise<ChannelMessageAck> {
|
1061
|
+
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mode: mode}});
|
1060
1062
|
return response.channel_message_ack;
|
1061
1063
|
}
|
1062
1064
|
|
@@ -1069,23 +1071,23 @@ export class DefaultSocket implements Socket {
|
|
1069
1071
|
return response.channel_message_ack;
|
1070
1072
|
}
|
1071
1073
|
|
1072
|
-
async writeMessageReaction(id: string, channel_id: string, mode: number, message_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean) : Promise<MessageReactionEvent> {
|
1073
|
-
const response = await this.send({message_reaction_event: {id: id, channel_id: channel_id, mode: mode, message_id: message_id, emoji: emoji, count: count, message_sender_id: message_sender_id, action: action_delete}});
|
1074
|
+
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> {
|
1075
|
+
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}});
|
1074
1076
|
return response.message_reaction_event
|
1075
1077
|
}
|
1076
1078
|
|
1077
|
-
async writeMessageTyping(channel_id: string, mode: number) : Promise<MessageTypingEvent> {
|
1078
|
-
const response = await this.send({message_typing_event: {channel_id: channel_id, mode:mode}});
|
1079
|
+
async writeMessageTyping(clan_id: string, channel_id: string, mode: number) : Promise<MessageTypingEvent> {
|
1080
|
+
const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode}});
|
1079
1081
|
return response.message_typing_event
|
1080
1082
|
}
|
1081
1083
|
|
1082
|
-
async writeLastSeenMessage(channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent> {
|
1083
|
-
const response = await this.send({last_seen_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp}});
|
1084
|
+
async writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string) : Promise<LastSeenMessageEvent> {
|
1085
|
+
const response = await this.send({last_seen_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp}});
|
1084
1086
|
return response.last_seen_message_event
|
1085
1087
|
}
|
1086
1088
|
|
1087
|
-
async writeLastPinMessage(channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent> {
|
1088
|
-
const response = await this.send({last_pin_message_event: {channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp, operation: operation}});
|
1089
|
+
async writeLastPinMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp: string, operation: number) : Promise<LastPinMessageEvent> {
|
1090
|
+
const response = await this.send({last_pin_message_event: {clan_id: clan_id, channel_id: channel_id, mode: mode, message_id: message_id, timestamp: timestamp, operation: operation}});
|
1089
1091
|
return response.last_pin_message_event
|
1090
1092
|
}
|
1091
1093
|
|