pub struct DiscordPlatformData {
pub channel_id: String,
pub embeds: Option<Vec<DiscordPlatformDataEmbedsInner>>,
pub poll: Option<Box<DiscordPlatformDataPoll>>,
pub crosspost: Option<bool>,
pub forum_thread_name: Option<String>,
pub forum_applied_tags: Option<Vec<String>>,
pub thread_from_message: Option<Box<DiscordPlatformDataThreadFromMessage>>,
pub tts: Option<bool>,
pub webhook_username: Option<String>,
pub webhook_avatar_url: Option<String>,
}Expand description
DiscordPlatformData : Discord message settings. Supports plain text (2,000 chars), rich embeds (up to 10), native polls, forum posts, threads, and announcement crossposts. Media attachments support images (JPEG, PNG, GIF, WebP), videos (MP4), and documents (up to 10 files, 25 MB each). Webhook identity (username + avatar) can be customized per-account via PATCH /v1/connect/discord or per-post via webhookUsername/webhookAvatarUrl.
Fields§
§channel_id: StringTarget channel snowflake ID. Determines which channel in the connected server receives the message.
embeds: Option<Vec<DiscordPlatformDataEmbedsInner>>Up to 10 Discord embed objects (combined max 6,000 characters across all embeds). Sent alongside or instead of plain-text content.
poll: Option<Box<DiscordPlatformDataPoll>>§crosspost: Option<bool>Auto-crosspost to every server following this announcement channel (type 5). No-op for regular text channels.
forum_thread_name: Option<String>Thread title for forum channel posts (type 15). Required when posting to a forum channel.
Tag snowflake IDs to apply to forum posts. Max 5 tags.
thread_from_message: Option<Box<DiscordPlatformDataThreadFromMessage>>§tts: Option<bool>Send as text-to-speech message. Discord reads the message aloud in the channel.
webhook_username: Option<String>Override the webhook display name for this post only (1-80 chars). Falls back to the account-level default set via PATCH /v1/connect/discord.
webhook_avatar_url: Option<String>Override the webhook avatar URL for this post only. Falls back to the account-level default.
Implementations§
Source§impl DiscordPlatformData
impl DiscordPlatformData
Sourcepub fn new(channel_id: String) -> DiscordPlatformData
pub fn new(channel_id: String) -> DiscordPlatformData
Discord message settings. Supports plain text (2,000 chars), rich embeds (up to 10), native polls, forum posts, threads, and announcement crossposts. Media attachments support images (JPEG, PNG, GIF, WebP), videos (MP4), and documents (up to 10 files, 25 MB each). Webhook identity (username + avatar) can be customized per-account via PATCH /v1/connect/discord or per-post via webhookUsername/webhookAvatarUrl.
Trait Implementations§
Source§impl Clone for DiscordPlatformData
impl Clone for DiscordPlatformData
Source§fn clone(&self) -> DiscordPlatformData
fn clone(&self) -> DiscordPlatformData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more