Skip to content

Commit

Permalink
chore(docs): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Sep 6, 2022
1 parent 320c007 commit e3d483e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class Studio {
* Uploads a video to YouTube.
* @example
* ```ts
* const buffer = fs.readFileSync('./my_awesome_video.mp4');
* const response = await yt.studio.upload(buffer, { title: 'Wow!' });
* const file = fs.readFileSync('./my_awesome_video.mp4');
* const response = await yt.studio.upload(file.buffer, { title: 'Wow!' });
* ```
*/
async upload(file: BodyInit, metadata: VideoMetadata = {}): Promise<AxioslikeResponse> {
Expand Down

0 comments on commit e3d483e

Please sign in to comment.