monorepon't
This commit is contained in:
17
src/base-instance.ts
Normal file
17
src/base-instance.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { MessageEmbedOptions, MessageOptions } from "discord.js"
|
||||
|
||||
export abstract class BaseInstance {
|
||||
/** The name of the JSX element represented by this instance */
|
||||
abstract readonly name: string
|
||||
|
||||
/** If the element represents text, the text for this element */
|
||||
getText?(): string
|
||||
|
||||
/** If this element can be a child of a message,
|
||||
* the function to modify the message options */
|
||||
renderToMessage?(options: MessageOptions): void
|
||||
|
||||
/** If this element can be a child of an embed,
|
||||
* the function to modify the embed options */
|
||||
renderToEmbed?(options: MessageEmbedOptions): void
|
||||
}
|
||||
Reference in New Issue
Block a user