[−][src]Struct spectacles_model::message::Message
A message sent in a channel on Discord.
Fields
id: SnowflakeThe message ID of the message.
channel_id: SnowflakeThe ID of the channel that the message was sent in.
guild_id: SnowflakeThe ID of the guild that the message was sent in.
The author of the message.
content: StringThe contents of this message.
member: GuildMemberThe guild member form of the message author.
timestamp: StringThe time that this message was sent.
edited_timestamp: Option<String>When this message was edited, if applicable.
tts: boolWhether or not this was a TTS message.
mention_everyone: boolWhether or not this message mentioned everyone.
mention_roles: Vec<Snowflake>Roles that were mentioned in this message.
attachments: Vec<MessageAttachment>The message's attached files, if any.
embeds: Vec<Embed>Any embeds sent with this message.
reactions: Vec<MessageReaction>The message's reactions.
nonce: Option<Snowflake>A snowflake used to validate that a message was sent.
pinned: boolWhether or not the message is pinned.
webhook_id: SnowflakeThe ID of the webhook if the message was sent by a webhook.
kind: MessageTypeThe type of message sent.
activity: MessageActivityMessage Activity sent with rich-presence embeds.
application: MessageApplicationMessage Application ent with Rich Presence embeds.
Trait Implementations
impl Clone for Message[src]
fn clone(&self) -> Message[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Message[src]
impl Serialize for Message[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for Message[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,