mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user