tightening coverage + some cleanup
This commit is contained in:
@@ -5,7 +5,7 @@ import type { OptionProps } from "./option"
|
||||
export class OptionNode extends Node<OptionProps> {
|
||||
get options(): MessageSelectOptionOptions {
|
||||
return {
|
||||
label: this.props.children || this.props.label || this.props.value || "",
|
||||
label: this.props.children || this.props.label || this.props.value,
|
||||
value: this.props.value,
|
||||
description: this.props.description,
|
||||
emoji: this.props.emoji,
|
||||
|
||||
@@ -3,6 +3,6 @@ import { Node } from "./node.js"
|
||||
|
||||
export class TextNode extends Node<string> {
|
||||
override modifyMessageOptions(options: MessageOptions) {
|
||||
options.content = (options.content ?? "") + this.props
|
||||
options.content = options.content + this.props
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user