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: String, pub edited_timestamp: Option<String>, pub pinned: bool, pub author: User, pub mention_everyone: bool, pub mentions: Vec<User>, pub mention_roles: Vec<RoleId>, pub attachments: Vec<Attachment>, pub embeds: Vec<Value>, }
Message transmitted over a text channel
Fields
id | |
channel_id | |
content | |
nonce | |
tts | |
timestamp | |
edited_timestamp | |
pinned | |
author | |
mention_everyone | |
mentions | |
mention_roles | |
attachments | |
embeds | Follows OEmbed standard |
Methods
impl Message
[src]
Trait Implementations
Derived Implementations
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