mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-11 05:31:56 +00:00
4.14.11
* Added: `Current Category` rule type for profile rules. (Ironically, does not currently apply when on the directory page for a category.) * Fixed: Various chat input related features breaking, including Room Actions and tab-completion of emotes. * Fixed: Alignment of certain chat settings menu elements. * Maintenance: Update our copy of the `CHAT_TYPES` enum with new types from Twitch's client.
This commit is contained in:
parent
bbaf96584c
commit
903b0b234c
9 changed files with 199 additions and 8 deletions
8
src/utilities/data/category-fetch.gql
Normal file
8
src/utilities/data/category-fetch.gql
Normal file
|
@ -0,0 +1,8 @@
|
|||
query FFZ_GetGame($id: ID, $name: String) {
|
||||
game(name: $name, id: $id) {
|
||||
id
|
||||
name
|
||||
displayName
|
||||
boxArtURL(width: 40, height: 56)
|
||||
}
|
||||
}
|
|
@ -141,6 +141,15 @@ export default class TwitchData extends Module {
|
|||
};
|
||||
}
|
||||
|
||||
async getCategory(id, name) {
|
||||
const data = await this.queryApollo(
|
||||
require('./data/category-fetch.gql'),
|
||||
{ id, name }
|
||||
);
|
||||
|
||||
return get('data.game', data);
|
||||
}
|
||||
|
||||
|
||||
// ========================================================================
|
||||
// Users
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue