#[non_exhaustive]pub struct ForumThreadMessage {
pub content: Option<CompactString>,
pub embeds: Vec<Embed>,
pub allowed_mentions: Option<AllowedMentions>,
pub components: Vec<Component>,
pub sticker_ids: Vec<StickerId>,
pub attachments: Option<Vec<AttachmentRequest>>,
pub flags: Option<MessageFlags>,
pub files: Vec<FileUpload>,
}Expand description
The first message of a forum or media post (D-112).
At least one of content, embeds, sticker_ids, components or files is required.
Like CreateMessage, every file gets an attachments entry
automatically (D-094).
discord.js counterpart: the message of RESTPostAPIGuildForumThreadsJSONBody (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: Option<CompactString>The text (up to 2000 characters).
embeds: Vec<Embed>Up to 10 rich embeds (up to 6000 characters in total).
allowed_mentions: Option<AllowedMentions>Which mentions in the content notify.
components: Vec<Component>The components.
sticker_ids: Vec<StickerId>Up to 3 stickers of the guild to send.
attachments: Option<Vec<AttachmentRequest>>Explicit attachment entries. Usually left out: every file gets one automatically,
unless an entry with its files[n] index is listed here.
flags: Option<MessageFlags>Only SUPPRESS_EMBEDS,
SUPPRESS_NOTIFICATIONS and
IS_COMPONENTS_V2 can be set.
files: Vec<FileUpload>Files to upload with the message.
Trait Implementations§
Source§impl Clone for ForumThreadMessage
impl Clone for ForumThreadMessage
Source§impl Debug for ForumThreadMessage
impl Debug for ForumThreadMessage
Source§impl Default for ForumThreadMessage
impl Default for ForumThreadMessage
Source§impl From<&str> for ForumThreadMessage
impl From<&str> for ForumThreadMessage
Source§impl From<String> for ForumThreadMessage
impl From<String> for ForumThreadMessage
Source§impl PartialEq for ForumThreadMessage
impl PartialEq for ForumThreadMessage
Source§impl Serialize for ForumThreadMessage
impl Serialize for ForumThreadMessage
impl StructuralPartialEq for ForumThreadMessage
Auto Trait Implementations§
impl Forget for ForumThreadMessage
impl Freeze for ForumThreadMessage
impl Move for ForumThreadMessage
impl RefUnwindSafe for ForumThreadMessage
impl Send for ForumThreadMessage
impl Sync for ForumThreadMessage
impl Unpin for ForumThreadMessage
impl UnsafeUnpin for ForumThreadMessage
impl UnwindSafe for ForumThreadMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more