feat: extract channel error alert

This commit is contained in:
LuanRT
2023-01-27 07:15:17 -03:00
parent 50ef71284d
commit 0b991800a5
5 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
import Text from './misc/Text';
import { YTNode } from '../helpers';
class Alert extends YTNode {
static type = 'Alert';
text: Text;
alert_type: string;
constructor(data: any) {
super();
this.text = new Text(data.text);
this.alert_type = data.type;
}
}
export default Alert;