Skip to content

Commit

Permalink
Merge pull request #232 from 1F916/HelixStream-add-gameName
Browse files Browse the repository at this point in the history
Added gameName property to HelixStream
  • Loading branch information
d-fischer committed Mar 23, 2021
2 parents 95653b6 + 2281ac1 commit 41ddd21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/twitch/src/API/Helix/Stream/HelixStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface HelixStreamData {
user_login: string;
user_name: string;
game_id: string;
game_name: string;
community_ids: string[];
type: HelixStreamType;
title: string;
Expand Down Expand Up @@ -100,6 +101,13 @@ export class HelixStream {
return this._data.game_id;
}

/**
* The game name.
*/
get gameName(): string {
return this._data.game_name;
}

/**
* Retrieves information about the game that is being played on the stream.
*/
Expand Down

0 comments on commit 41ddd21

Please sign in to comment.