23 lines
482 B
TypeScript
23 lines
482 B
TypeScript
/* eslint-disable class-methods-use-this */
|
|
import type { MessageComponentInteraction, MessageOptions } from "discord.js"
|
|
|
|
export abstract class Node<Props> {
|
|
protected props: Props
|
|
|
|
constructor(initialProps: Props) {
|
|
this.props = initialProps
|
|
}
|
|
|
|
setProps(props: Props) {
|
|
this.props = props
|
|
}
|
|
|
|
modifyMessageOptions(options: MessageOptions) {}
|
|
|
|
handleInteraction(
|
|
interaction: MessageComponentInteraction,
|
|
): true | undefined {
|
|
return undefined
|
|
}
|
|
}
|