[−][src]Struct panda::models::gateway::events::MessageUpdate
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]
&'_ self,
http: &'_ HttpClient,
content: impl AsRef<str>
) -> StdResult<Message, PandaError>
pub async fn send_embed<'_, '_>(
&'_ self,
http: &'_ HttpClient,
embed: Embed
) -> StdResult<Message, PandaError>
[src]
&'_ self,
http: &'_ HttpClient,
embed: Embed
) -> StdResult<Message, PandaError>
Trait Implementations
impl Debug for MessageUpdate
[src]
impl Deref for MessageUpdate
[src]
impl<'de> Deserialize<'de> for MessageUpdate
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for MessageUpdate
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageUpdate
impl Send for MessageUpdate
impl Sync for MessageUpdate
impl Unpin for MessageUpdate
impl UnwindSafe for MessageUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,