mezon-js 2.8.93 → 2.8.94

Sign up to get free protection for your applications and to get access to all the features.
@@ -4992,6 +4992,8 @@ var _DefaultSocket = class _DefaultSocket {
4992
4992
  this.onchannelcreated(message.channel_created_event);
4993
4993
  } else if (message.role_event) {
4994
4994
  this.onroleevent(message.role_event);
4995
+ } else if (message.event_emoji) {
4996
+ this.oneventemoji(message.event_emoji);
4995
4997
  } else if (message.channel_deleted_event) {
4996
4998
  this.onchanneldeleted(message.channel_deleted_event);
4997
4999
  } else if (message.clan_deleted_event) {
@@ -5239,6 +5241,11 @@ var _DefaultSocket = class _DefaultSocket {
5239
5241
  console.log(roleEvent);
5240
5242
  }
5241
5243
  }
5244
+ oneventemoji(eventEmoji) {
5245
+ if (this.verbose && window && window.console) {
5246
+ console.log(eventEmoji);
5247
+ }
5248
+ }
5242
5249
  onchanneldeleted(channelDeleted) {
5243
5250
  if (this.verbose && window && window.console) {
5244
5251
  console.log(channelDeleted);
@@ -4963,6 +4963,8 @@ var _DefaultSocket = class _DefaultSocket {
4963
4963
  this.onchannelcreated(message.channel_created_event);
4964
4964
  } else if (message.role_event) {
4965
4965
  this.onroleevent(message.role_event);
4966
+ } else if (message.event_emoji) {
4967
+ this.oneventemoji(message.event_emoji);
4966
4968
  } else if (message.channel_deleted_event) {
4967
4969
  this.onchanneldeleted(message.channel_deleted_event);
4968
4970
  } else if (message.clan_deleted_event) {
@@ -5210,6 +5212,11 @@ var _DefaultSocket = class _DefaultSocket {
5210
5212
  console.log(roleEvent);
5211
5213
  }
5212
5214
  }
5215
+ oneventemoji(eventEmoji) {
5216
+ if (this.verbose && window && window.console) {
5217
+ console.log(eventEmoji);
5218
+ }
5219
+ }
5213
5220
  onchanneldeleted(channelDeleted) {
5214
5221
  if (this.verbose && window && window.console) {
5215
5222
  console.log(channelDeleted);
package/dist/socket.d.ts CHANGED
@@ -468,6 +468,14 @@ export interface RoleEvent {
468
468
  role_title: string;
469
469
  status: string;
470
470
  }
471
+ export interface EventEmoji {
472
+ id: string;
473
+ clan_id: string;
474
+ short_name: string;
475
+ source: string;
476
+ category: string;
477
+ action: string;
478
+ }
471
479
  export interface UserPermissionInChannelListEvent {
472
480
  clan_id: string;
473
481
  channel_id: string;
@@ -689,6 +697,7 @@ export interface Socket {
689
697
  getNotificationChannelCategorySetting(clan_id: string): Promise<NotificationChannelCategorySettingEvent>;
690
698
  oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
691
699
  oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
700
+ oneventemoji: (event_emoji: EventEmoji) => void;
692
701
  }
693
702
  /** Reports an error received from a socket message. */
694
703
  export interface SocketError {
@@ -738,6 +747,7 @@ export declare class DefaultSocket implements Socket {
738
747
  onvoiceleaved(voiceParticipant: VoiceLeavedEvent): void;
739
748
  onchannelcreated(channelCreated: ChannelCreatedEvent): void;
740
749
  onroleevent(roleEvent: RoleEvent): void;
750
+ oneventemoji(eventEmoji: EventEmoji): void;
741
751
  onchanneldeleted(channelDeleted: ChannelDeletedEvent): void;
742
752
  onclandeleted(clanDeleted: ClanDeletedEvent): void;
743
753
  onstickercreated(stickerCreated: StickerCreateEvent): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.8.93",
4
+ "version": "2.8.94",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -678,6 +678,15 @@ export interface RoleEvent {
678
678
  status: string;
679
679
  }
680
680
 
681
+ export interface EventEmoji {
682
+ id : string
683
+ clan_id: string
684
+ short_name: string
685
+ source: string
686
+ category: string
687
+ action: string
688
+ }
689
+
681
690
  export interface UserPermissionInChannelListEvent {
682
691
  //
683
692
  clan_id: string;
@@ -1059,6 +1068,8 @@ export interface Socket {
1059
1068
 
1060
1069
  oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
1061
1070
 
1071
+ oneventemoji: (event_emoji: EventEmoji) => void;
1072
+
1062
1073
  }
1063
1074
 
1064
1075
  /** Reports an error received from a socket message. */
@@ -1142,6 +1153,8 @@ export class DefaultSocket implements Socket {
1142
1153
  this.onchannelcreated(message.channel_created_event)
1143
1154
  } else if (message.role_event) {
1144
1155
  this.onroleevent(message.role_event)
1156
+ } else if(message.event_emoji){
1157
+ this.oneventemoji(message.event_emoji)
1145
1158
  } else if (message.channel_deleted_event) {
1146
1159
  this.onchanneldeleted(message.channel_deleted_event)
1147
1160
  } else if (message.clan_deleted_event) {
@@ -1423,6 +1436,12 @@ export class DefaultSocket implements Socket {
1423
1436
  }
1424
1437
  }
1425
1438
 
1439
+ oneventemoji(eventEmoji: EventEmoji) {
1440
+ if (this.verbose && window && window.console) {
1441
+ console.log(eventEmoji);
1442
+ }
1443
+ }
1444
+
1426
1445
  onchanneldeleted(channelDeleted: ChannelDeletedEvent) {
1427
1446
  if (this.verbose && window && window.console) {
1428
1447
  console.log(channelDeleted);