UNPKG

seyfert

Version:

The most advanced framework for discord bots

30 lines (29 loc) 937 B
import { type APITextDisplayComponent } from '../types'; import { BaseComponentBuilder } from './Base'; /** * Represents a text display component builder. * Used to display simple text content. * @example * ```ts * const text = new TextDisplay().content('Hello, world!'); * ``` */ export declare class TextDisplay extends BaseComponentBuilder<APITextDisplayComponent> { /** * Constructs a new TextDisplay component. * @param data Optional initial data for the text display component. */ constructor(data?: Partial<APITextDisplayComponent>); /** * Sets the ID for the text display component. * @param id The ID to set. * @returns The updated TextDisplay instance. */ setId(id: number): this; /** * Sets the text content to display. * @param content The text content. * @returns The updated TextDisplay instance. */ setContent(content: string): this; }