mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
Due to recent changes by YouTube, these actions can no longer be executed using web based OAuth tokens nor cookies.
18 lines
473 B
TypeScript
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;
|
|
}
|
|
} |