Struct PartialMessage
zaun_client::PartialMessage · Struct
pub struct PartialMessage { … }A message known only by its id, as an edit, a deletion or a reaction names it: the client
keeps no message history, so its text and author are not at hand. It acts like a
Message.
Methods
Section titled “Methods”pub const fn id(&self) -> MessageIdIts id.
channel
Section titled “channel”pub const fn channel(&self) -> &ChannelIts channel.
community
Section titled “community”pub const fn community(&self) -> &CommunityIts community.
pub fn reply<impl Into<MessageOptions>>(&self, options: impl Into<MessageOptions>) -> Result<Message>Answers this message in its channel: text, or MessageOptions.
Errors
Section titled “Errors”As Channel::send.
pub fn edit<impl Into<EditMessage>>(&self, options: impl Into<EditMessage>) -> Result<()>Edits this message (one of this member’s): new text, or an EditMessage with its
text and new embeds (whose pictures must be attachments the message already has) or
mentions.
Errors
Section titled “Errors”No text given ([Error::Protocol]: a partial message does not know its own, and the
protocol replaces it), or as Message::edit.
delete
Section titled “delete”pub fn delete(&self) -> Result<()>Deletes this message (one’s own, or any with MANAGE_MESSAGES).
Errors
Section titled “Errors”The host refused or did not answer.
pub fn react(&self, emoji: &str) -> Result<()>Adds emoji as this member.
Errors
Section titled “Errors”The host refused or did not answer.
unreact
Section titled “unreact”pub fn unreact(&self, emoji: &str) -> Result<()>Takes this member’s emoji off.
Errors
Section titled “Errors”The host refused or did not answer.
Trait implementations
Section titled “Trait implementations”Clone, Debug, From<&Message>, PartialEq