Blame Raw
Cohee · e3f41666 · · 20 lines (447 B)
1 contributor
1import { QuickReplySet } from './QuickReplySet.js';
2
3export class QuickReplyContextLink {
4 static from(props) {
5 props.set = QuickReplySet.get(props.set);
6 const x = Object.assign(new this(), props);
7 return x;
8 }
9
10
11 /**@type {QuickReplySet}*/ set;
12 /**@type {Boolean}*/ isChained = false;
13
14 toJSON() {
15 return {
16 set: this.set?.name,
17 isChained: this.isChained,
18 };
19 }
20}