Struct twilight_model::channel::message::Message [−][src]
pub struct Message {}Show fields
pub activity: Option<MessageActivity>, pub application: Option<MessageApplication>, pub application_id: Option<ApplicationId>, pub attachments: Vec<Attachment>, pub author: User, pub channel_id: ChannelId, pub content: String, pub edited_timestamp: Option<String>, pub embeds: Vec<Embed>, pub flags: Option<MessageFlags>, pub guild_id: Option<GuildId>, pub id: MessageId, pub interaction: Option<MessageInteraction>, pub kind: MessageType, pub member: Option<PartialMember>, pub mention_channels: Vec<ChannelMention>, pub mention_everyone: bool, pub mention_roles: Vec<RoleId>, pub mentions: Vec<Mention>, pub pinned: bool, pub reactions: Vec<MessageReaction>, pub reference: Option<MessageReference>, pub referenced_message: Option<Box<Message>>, pub stickers: Vec<Sticker>, pub timestamp: String, pub tts: bool, pub webhook_id: Option<WebhookId>,
Fields
activity: Option<MessageActivity>
application: Option<MessageApplication>
application_id: Option<ApplicationId>
Associated application’s ID.
Sent if the message is a response to an Interaction.
attachments: Vec<Attachment>
channel_id: ChannelId
content: String
edited_timestamp: Option<String>
embeds: Vec<Embed>
flags: Option<MessageFlags>
guild_id: Option<GuildId>
id: MessageId
interaction: Option<MessageInteraction>
kind: MessageType
member: Option<PartialMember>
mention_channels: Vec<ChannelMention>
mention_everyone: bool
mention_roles: Vec<RoleId>
mentions: Vec<Mention>
pinned: bool
reactions: Vec<MessageReaction>
reference: Option<MessageReference>
Reference data sent with crossposted messages and replies.
referenced_message: Option<Box<Message>>
The message associated with the reference.
stickers: Vec<Sticker>
Stickers within the message.
timestamp: String
tts: bool
webhook_id: Option<WebhookId>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more