Files
reacord/packages/reacord/library/internal/node.ts
MapleLeaf 88e9919c8f workspace
2021-12-29 13:19:46 -06:00

17 lines
473 B
TypeScript

/* 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>>()
constructor(public props: Props) {}
modifyMessageOptions(options: MessageOptions) {}
handleComponentInteraction(interaction: ComponentInteraction): boolean {
return false
}
}