mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46651 tmi.js: Add VIP badge to Badges interface by @timothy1205
* Add VIP badge to Badges interface. Twitch badge list can be found at https://help.twitch.tv/s/article/twitch-chat-badges-guide?language=en_US Also https://dev.twitch.tv/docs/irc/tags#globaluserstate-twitch-tags under 'badges' parameter. * Include new badge in test
This commit is contained in:
parent
db841e9f31
commit
9d80342901
3
types/tmi.js/index.d.ts
vendored
3
types/tmi.js/index.d.ts
vendored
@ -5,7 +5,7 @@
|
||||
// TypeScript Version: 3.3
|
||||
|
||||
// Twitch IRC docs: https://dev.twitch.tv/docs/irc/
|
||||
// Last updated: 2019/3/06
|
||||
// Last updated: 2020/8/10
|
||||
|
||||
import { StrictEventEmitter } from "./strict-event-emitter-types";
|
||||
|
||||
@ -114,6 +114,7 @@ export interface Badges {
|
||||
broadcaster?: string;
|
||||
global_mod?: string;
|
||||
moderator?: string;
|
||||
vip?: string;
|
||||
subscriber?: string;
|
||||
staff?: string;
|
||||
turbo?: string;
|
||||
|
||||
@ -68,7 +68,7 @@ client.connect().then(() => {
|
||||
emotes.test.forEach(element => { });
|
||||
}
|
||||
if (badges) {
|
||||
const { admin, turbo, subscriber, bits, broadcaster, global_mod, moderator, premium, staff } = badges;
|
||||
const { admin, turbo, subscriber, bits, broadcaster, global_mod, moderator, premium, staff, vip } = badges;
|
||||
}
|
||||
userstate["display-name"];
|
||||
userstate["emotes-raw"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user