pub struct Edit {
pub message_id: MessageId,
pub content: String,
pub embeds: Option<Vec<Embed>>,
pub components: Option<Vec<Component>>,
pub mentions: Option<Mentions>,
}Expand description
message.edit (§8.5). Author only.
Fields§
§message_id: MessageIdThe message.
content: String≤ 4 000 scalars; the edited message must still have content, an attachment or an embed.
embeds: Option<Vec<Embed>>The message’s new embeds (EMBED_LINKS unless empty): absent leaves them unchanged,
[] removes them all. Their pictures must be attachments already on the message.
components: Option<Vec<Component>>New components (bots only): absent leaves them unchanged, [] removes them.
mentions: Option<Mentions>Who the edited message mentions, by message.send’s rules: absent leaves the
mentions unchanged, otherwise they replace them all.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edit
impl<'de> Deserialize<'de> for Edit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Edit
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more