[][src]Struct panda::models::gateway::events::MessageUpdate

pub struct MessageUpdate(pub Message);

Methods from Deref<Target = Message>

pub fn id(&self) -> &str[src]

Returns the message id

pub fn channel_id(&self) -> &str[src]

Returns the id of the channel the message was sent

pub fn guild_id(&self) -> Option<&str>[src]

Returns the id of the guild the message was sent in,

pub fn author(&self) -> &User[src]

Returns the author of this message

pub fn member(&self) -> Option<&GuildMember>[src]

Returns the guild member properties for this message's author

pub fn content(&self) -> &str[src]

Returns the contents of the message

pub fn timestamp(&self) -> &str[src]

Returns when this message was sent in ISO8601 timestamp

pub fn edited_timestamp(&self) -> Option<&str>[src]

Returns when this message was edited (None if never) in ISO8601 timestamp

pub fn tts(&self) -> bool[src]

Returns whether this was a TTS message

pub fn mention_everyone(&self) -> bool[src]

Returns whether this message mentions everyone

pub fn mentions(&self) -> &[User][src]

Returns the users specifically mentioned in the message

pub fn mention_roles(&self) -> &[String][src]

Returns the roles specifically mentioned in this message

pub fn embed(&self) -> &[Embed][src]

pub fn nonce(&self) -> Option<&str>[src]

pub fn pinned(&self) -> bool[src]

pub fn webhook_id(&self) -> Option<&str>[src]

pub fn kind(&self) -> Option<&Kind>[src]

pub fn flags(&self) -> Option<u64>[src]

pub async fn send_message<'_, '_>(
    &'_ self,
    http: &'_ HttpClient,
    content: impl AsRef<str>
) -> StdResult<Message, PandaError>
[src]

pub async fn send_embed<'_, '_>(
    &'_ self,
    http: &'_ HttpClient,
    embed: Embed
) -> StdResult<Message, PandaError>
[src]

Trait Implementations

impl Debug for MessageUpdate[src]

impl Deref for MessageUpdate[src]

type Target = Message

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for MessageUpdate[src]

impl Serialize for MessageUpdate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]