move stuff around

This commit is contained in:
MapleLeaf
2021-12-26 22:57:17 -06:00
parent 5ed8ea059f
commit 349fff1bcb
29 changed files with 180 additions and 171 deletions

23
library/internal/node.ts Normal file
View File

@@ -0,0 +1,23 @@
/* eslint-disable class-methods-use-this */
import { Container } from "./container.js"
import type { ComponentInteraction } from "./interaction"
import type { MessageOptions } from "./message"
export abstract class Node<Props> {
readonly children = new Container<Node<unknown>>()
protected props: Props
constructor(initialProps: Props) {
this.props = initialProps
}
setProps(props: Props) {
this.props = props
}
modifyMessageOptions(options: MessageOptions) {}
handleComponentInteraction(interaction: ComponentInteraction): boolean {
return false
}
}