pub struct Response { /* private fields */ }Expand description
What a bot answers an interaction with. Build one with the constructors.
Implementations§
Source§impl Response
impl Response
Sourcepub fn ephemeral(body: MessageBody) -> Self
pub fn ephemeral(body: MessageBody) -> Self
A message only the invoker sees (type 4 with EPHEMERAL).
Sourcepub fn defer(ephemeral: bool) -> Self
pub fn defer(ephemeral: bool) -> Self
“Thinking…” now, the message later with edit_original (type 5).
Sourcepub const fn defer_update() -> Self
pub const fn defer_update() -> Self
Acknowledge a component click without a visible change yet (type 6).
Trait Implementations§
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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