Skip to content

Commit

Permalink
add ChatUser#isBroadcaster
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed Jun 8, 2020
1 parent dedea3b commit 3ec3235
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/twitch-chat-client/src/ChatUser.ts
Expand Up @@ -75,6 +75,13 @@ export default class ChatUser {
return this._userData.get('user-type') || undefined;
}

/**
* Whether the user is the broadcaster.
*/
get isBroadcaster() {
return this.badges.has('broadcaster');
}

/**
* Whether the user is subscribed to the channel.
*/
Expand Down

0 comments on commit 3ec3235

Please sign in to comment.