embeds + decentralized element definition
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
export abstract class Node {
|
||||
abstract get name(): string
|
||||
abstract props: Record<string, unknown>
|
||||
/* 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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user