Files
YouTube.js/src/parser/classes/CopyLink.ts
Luan 0081e11ebc refactor!: Deprecate account#getAnalytics, account#getTimeWatched and account#getAnalytics
Due to recent changes by YouTube, these actions can no longer be executed using web based OAuth tokens nor cookies.
2024-10-26 17:45:09 -03:00

18 lines
473 B
TypeScript

import { YTNode } from '../helpers.js';
import { Parser, type RawNode } from '../index.js';
import Button from './Button.js';
export default class CopyLink extends YTNode {
static type = 'CopyLink';
public copy_button: Button | null;
public short_url: string;
public style: string;
constructor(data: RawNode) {
super();
this.copy_button = Parser.parseItem(data.copyButton, Button);
this.short_url = data.shortUrl;
this.style = data.style;
}
}