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:
Patrick List 2020-09-15 00:29:55 +02:00 committed by GitHub
parent c5b6fdf204
commit 8a20b53292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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"];