Skip to content

Commit

Permalink
add: next getter and setter for Message
Browse files Browse the repository at this point in the history
  • Loading branch information
benchambule committed Aug 28, 2024
1 parent ae4a385 commit 9916353
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,18 @@ class Message {

this.form.options.set(key.toString(), {label, next, parameters});
}

set next(next){
if(!this.form){
this.form = {input: {}};
}

this.form.next = next;
}

get next(){
return this.form.next;
}
}

/**
Expand Down

0 comments on commit 9916353

Please sign in to comment.