feat: add Studio#setThumbnail() method (#111)

* feat: add support for protobuf payloads to `Actions#execute()`

* chore: compile proto definitions file

* feat(wip): add `Studio` class and implement `Studio#setThumbnail()` method

* fix: check if parameters are missing
This commit is contained in:
LuanRT
2022-07-23 02:45:47 -03:00
committed by GitHub
parent 8ed6cc9e24
commit a2103963b4
7 changed files with 3136 additions and 2865 deletions

View File

@@ -120,7 +120,7 @@ export default class HTTPClient {
// Check if 2xx
if (response.ok) {
return response;
} throw new InnertubeError(`Request to ${response.url} failed with status ${response.status}`, response);
} throw new InnertubeError(`Request to ${response.url} failed with status ${response.status}`, await response.json());
}
#adjustContext(ctx: Context, client: string) {