pub struct EphemeralReply {
pub channel: Option<Channel>,
pub interaction: InteractionId,
pub op: EphemeralOp,
pub message: Option<Box<Message>>,
}Expand description
A bot’s ephemeral reply (EPHEMERAL): only this member sees it, nothing stores it, and it
lives as long as the interaction (15 minutes). Key it by its message’s message_id.
Fields§
§channel: Option<Channel>Where the interaction happened.
interaction: InteractionIdThe interaction it answers.
op: EphemeralOpCreated, updated or deleted.
message: Option<Box<Message>>The message (absent when deleted).
Trait Implementations§
Source§impl Clone for EphemeralReply
impl Clone for EphemeralReply
Source§fn clone(&self) -> EphemeralReply
fn clone(&self) -> EphemeralReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EphemeralReply
impl RefUnwindSafe for EphemeralReply
impl Send for EphemeralReply
impl Sync for EphemeralReply
impl Unpin for EphemeralReply
impl UnsafeUnpin for EphemeralReply
impl UnwindSafe for EphemeralReply
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