twilight-model 0.17.1

Discord API models for the Twilight ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

/// Top-level component that allows markdown formatted text.
///
/// Text Displays are only available in messages.
#[derive(Clone, Debug, Eq, Hash, PartialEq, Deserialize, Serialize)]
pub struct TextDisplay {
    /// Optional id for the text display component.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// Text that will be displayed similar to a message.
    pub content: String,
}