multichat-ts 0.0.90 → 0.0.92
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/kick.js +1 -1
- package/dist/twitch.js +8 -1
- package/package.json +1 -1
- package/src/default/kick.ts +2 -3
- package/src/default/twitch.ts +8 -1
package/dist/kick.js
CHANGED
|
@@ -71,7 +71,7 @@ export class KickPusher {
|
|
|
71
71
|
.bind('pusher:subscription_succeeded', () => this.onSubscriptionSuccess('pusher:subscription_succeeded'))
|
|
72
72
|
.bind('App\\Events\\ChatMessageEvent', (data) => this.onChatMessage(data))
|
|
73
73
|
.bind('App\\Events\\SubscriptionEvent', (data) => this.onChatSubscription(data))
|
|
74
|
-
.bind('
|
|
74
|
+
.bind('GiftedSubscriptionsEvent', (data) => this.onChatGifted(data));
|
|
75
75
|
this.socket.connection.bind('state_change', (state) => {
|
|
76
76
|
switch (state.current) {
|
|
77
77
|
case 'connected': {
|
package/dist/twitch.js
CHANGED
|
@@ -217,7 +217,14 @@ export class TwitchIRC {
|
|
|
217
217
|
id: tags['user-id'],
|
|
218
218
|
username: (tags['display-name'] ?? 'Unknown').toLowerCase(),
|
|
219
219
|
display_name: tags['display-name'] ?? 'Unknown',
|
|
220
|
-
roles: {
|
|
220
|
+
roles: {
|
|
221
|
+
admin: tags['user-type'] === 'admin',
|
|
222
|
+
global_moderator: tags['user-type'] === 'global_mod',
|
|
223
|
+
staff: tags['user-type'] === 'staff',
|
|
224
|
+
turbo: tags.turbo === '1',
|
|
225
|
+
vip: tags.vip === '1',
|
|
226
|
+
moderator: tags.mod === '1',
|
|
227
|
+
},
|
|
221
228
|
},
|
|
222
229
|
});
|
|
223
230
|
break;
|
package/package.json
CHANGED
package/src/default/kick.ts
CHANGED
|
@@ -134,9 +134,8 @@ export class KickPusher {
|
|
|
134
134
|
.bind('App\\Events\\SubscriptionEvent', (data: ChatroomsV2Events['SubscriptionEvent']) =>
|
|
135
135
|
this.onChatSubscription(data),
|
|
136
136
|
)
|
|
137
|
-
.bind(
|
|
138
|
-
|
|
139
|
-
(data: ChatroomV1Events['GiftedSubscriptionsEvent']) => this.onChatGifted(data),
|
|
137
|
+
.bind('GiftedSubscriptionsEvent', (data: ChatroomV1Events['GiftedSubscriptionsEvent']) =>
|
|
138
|
+
this.onChatGifted(data),
|
|
140
139
|
);
|
|
141
140
|
|
|
142
141
|
this.socket.connection.bind('state_change', (state: ConnectionStateEvent) => {
|
package/src/default/twitch.ts
CHANGED
|
@@ -278,7 +278,14 @@ export class TwitchIRC {
|
|
|
278
278
|
id: tags['user-id'],
|
|
279
279
|
username: (tags['display-name'] ?? 'Unknown').toLowerCase(),
|
|
280
280
|
display_name: tags['display-name'] ?? 'Unknown',
|
|
281
|
-
roles: {
|
|
281
|
+
roles: {
|
|
282
|
+
admin: tags['user-type'] === 'admin',
|
|
283
|
+
global_moderator: tags['user-type'] === 'global_mod',
|
|
284
|
+
staff: tags['user-type'] === 'staff',
|
|
285
|
+
turbo: tags.turbo === '1',
|
|
286
|
+
vip: tags.vip === '1',
|
|
287
|
+
moderator: tags.mod === '1',
|
|
288
|
+
},
|
|
282
289
|
},
|
|
283
290
|
});
|
|
284
291
|
break;
|