Struct discord::model::Message
[−]
[src]
pub struct Message { pub id: MessageId, pub channel_id: ChannelId, pub content: String, pub nonce: Option<String>, pub tts: bool, pub timestamp: DateTime<FixedOffset>, pub edited_timestamp: Option<DateTime<FixedOffset>>, pub pinned: bool, pub kind: MessageType, pub author: User, pub mention_everyone: bool, pub mentions: Vec<User>, pub mention_roles: Vec<RoleId>, pub reactions: Vec<MessageReaction>, pub attachments: Vec<Attachment>, pub embeds: Vec<Value>, }
Message transmitted over a text channel
Fields
id: MessageId
channel_id: ChannelId
content: String
nonce: Option<String>
tts: bool
timestamp: DateTime<FixedOffset>
edited_timestamp: Option<DateTime<FixedOffset>>
pinned: bool
kind: MessageType
mention_everyone: bool
mentions: Vec<User>
mention_roles: Vec<RoleId>
reactions: Vec<MessageReaction>
attachments: Vec<Attachment>
embeds: Vec<Value>
Follows OEmbed standard
Trait Implementations
impl Debug for Message
[src]
impl Clone for Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more