mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
tmi.js: Add partner and founder badges to Badges interface (#46693)
* Added "partner" badge (check icon) * Add "partner" badge to tests * Add "founder" badge * Add "founder" badge to tests
This commit is contained in:
parent
c5b6fdf204
commit
8a20b53292
4
types/tmi.js/index.d.ts
vendored
4
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: 2020/8/10
|
||||
// Last updated: 2020/8/12
|
||||
|
||||
import { StrictEventEmitter } from "./strict-event-emitter-types";
|
||||
|
||||
@ -112,6 +112,7 @@ export interface Badges {
|
||||
admin?: string;
|
||||
bits?: string;
|
||||
broadcaster?: string;
|
||||
partner?: string;
|
||||
global_mod?: string;
|
||||
moderator?: string;
|
||||
vip?: string;
|
||||
@ -119,6 +120,7 @@ export interface Badges {
|
||||
staff?: string;
|
||||
turbo?: string;
|
||||
premium?: string;
|
||||
founder?: string;
|
||||
}
|
||||
|
||||
export interface SubMethods {
|
||||
|
||||
@ -68,7 +68,7 @@ client.connect().then(() => {
|
||||
emotes.test.forEach(element => { });
|
||||
}
|
||||
if (badges) {
|
||||
const { admin, turbo, subscriber, bits, broadcaster, global_mod, moderator, premium, staff, vip } = badges;
|
||||
const { admin, turbo, subscriber, bits, broadcaster, global_mod, moderator, premium, staff, vip, partner, founder } = badges;
|
||||
}
|
||||
userstate["display-name"];
|
||||
userstate["emotes-raw"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user