@tixyel/streamelements 7.0.1 → 7.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -487,11 +487,11 @@ declare namespace Twitch {
487
487
 
488
488
  declare namespace TwitchEvents {
489
489
  namespace Message {
490
- export type Data = {
490
+ type Data = {
491
491
  listener: 'message';
492
492
  event: Event;
493
493
  };
494
- export type Event = {
494
+ type Event = {
495
495
  service: 'twitch';
496
496
  data: {
497
497
  time: number;
@@ -522,18 +522,11 @@ declare namespace TwitchEvents {
522
522
  isAction: boolean;
523
523
  userId: string;
524
524
  msgId: string;
525
- badges: Array<Badge>;
525
+ badges: Array<Twitch.badge>;
526
526
  emotes: Array<Emote>;
527
527
  };
528
528
  renderedText: string;
529
529
  };
530
- type Badge = {
531
- type: string;
532
- version: string;
533
- description: string;
534
- url: string;
535
- };
536
- export {};
537
530
  }
538
531
  namespace DeleteMessage {
539
532
  type Data = {
@@ -3085,7 +3078,7 @@ type IdentifyTwitchResult = {
3085
3078
  color: string;
3086
3079
  role: Twitch.tags;
3087
3080
  tags: Twitch.tags[];
3088
- badges: string;
3081
+ badges: Twitch.badge[];
3089
3082
  tier?: 1 | 2 | 3;
3090
3083
  top: TopType;
3091
3084
  };
@@ -3277,11 +3270,15 @@ interface FakeUserPoolOptions {
3277
3270
  id?: string;
3278
3271
  names?: string[];
3279
3272
  badges?: Twitch.tags[];
3273
+ minimumBadgesPerUser?: number;
3280
3274
  limits?: {
3281
3275
  [key in Twitch.tags]?: number;
3282
3276
  };
3283
3277
  fixed?: {
3284
- [key in Twitch.tags]?: string[];
3278
+ [key in Twitch.tags]?: string | string[];
3279
+ };
3280
+ incompatible?: {
3281
+ [key in Twitch.tags]?: Twitch.tags | Twitch.tags[];
3285
3282
  };
3286
3283
  }
3287
3284
  type FakeUserPoolEvents = {