chore: v6.1.0 release

This commit is contained in:
LuanRT
2023-08-27 19:44:15 +00:00
parent 848c7e68e2
commit 09321408e5
10 changed files with 179 additions and 75 deletions

View File

@@ -0,0 +1,19 @@
import Button from './Button.ts';
import Text from './misc/Text.ts';
import { YTNode } from '../helpers.ts';
import { Parser, type RawNode } from '../index.ts';
export default class AlertWithButton extends YTNode {
static type = 'AlertWithButton';
text: Text;
alert_type: string;
dismiss_button: Button | null;
constructor(data: RawNode) {
super();
this.text = new Text(data.text);
this.alert_type = data.type;
this.dismiss_button = Parser.parseItem(data.dismissButton, Button);
}
}