pub struct InteractionResponseBuilder<'a> { /* private fields */ }Expand description
Builder for Interaction Response.
Implementations§
Source§impl<'a> InteractionResponseBuilder<'a>
impl<'a> InteractionResponseBuilder<'a>
pub fn kind(self, kind: InteractionCallbackType) -> Self
pub fn content(self, content: impl Into<TitanString<'a>>) -> Self
pub fn embed(self, embed: impl Into<Embed<'a>>) -> Self
pub fn component(self, component: impl Into<Component<'a>>) -> Self
pub fn components(self, components: Vec<Component<'a>>) -> Self
pub fn ephemeral(self, ephemeral: bool) -> Self
Sourcepub fn deferred(self, ephemeral: bool) -> Self
pub fn deferred(self, ephemeral: bool) -> Self
Sets response type to DeferredChannelMessageWithSource (5)
Sourcepub fn update_message(self) -> Self
pub fn update_message(self) -> Self
Sets response type to UpdateMessage (7) - for component interactions
pub fn build(self) -> InteractionResponse<'a>
pub fn modal(self, modal: Modal<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for InteractionResponseBuilder<'a>
impl<'a> Clone for InteractionResponseBuilder<'a>
Source§fn clone(&self) -> InteractionResponseBuilder<'a>
fn clone(&self) -> InteractionResponseBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InteractionResponseBuilder<'a>
impl<'a> Debug for InteractionResponseBuilder<'a>
Source§impl Default for InteractionResponseBuilder<'_>
impl Default for InteractionResponseBuilder<'_>
Source§impl<'a> From<InteractionResponseBuilder<'a>> for InteractionResponse<'a>
impl<'a> From<InteractionResponseBuilder<'a>> for InteractionResponse<'a>
Source§fn from(builder: InteractionResponseBuilder<'a>) -> Self
fn from(builder: InteractionResponseBuilder<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for InteractionResponseBuilder<'a>
impl<'a> RefUnwindSafe for InteractionResponseBuilder<'a>
impl<'a> Send for InteractionResponseBuilder<'a>
impl<'a> Sync for InteractionResponseBuilder<'a>
impl<'a> Unpin for InteractionResponseBuilder<'a>
impl<'a> UnwindSafe for InteractionResponseBuilder<'a>
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