TextDisplay
A component for displaying text content in messages.
The TextDisplay component is the primary way to show text content in your messages. It's a simple but essential component that can be used standalone or within other components like Section or Container.
Component Structure
A TextDisplay is defined by its text content. It's the most basic component type and serves as the foundation for displaying information in your messages.
Creating a TextDisplay
To create a text display, you simply instantiate the TextDisplay
class with your desired text:
Usage Example
Here's how you might use TextDisplay in a command:
Edit on GitHub
Last updated on