multichat-ts 0.0.91 → 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/twitch.js +8 -1
- package/package.json +1 -1
- package/src/default/twitch.ts +8 -1
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/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;
|