pub struct InteractionResponseBuilder<State>(/* private fields */);Implementations§
Source§impl InteractionResponseBuilder<Pong>
impl InteractionResponseBuilder<Pong>
pub fn pong() -> Self
pub fn finish(self) -> InteractionResponse
Source§impl InteractionResponseBuilder<Deferred>
impl InteractionResponseBuilder<Deferred>
pub fn deferred() -> Self
pub fn finish(self) -> InteractionResponse
Source§impl InteractionResponseBuilder<ChannelMessageNoContent>
impl InteractionResponseBuilder<ChannelMessageNoContent>
pub fn channel_message() -> Self
pub fn content( self, content: impl Into<String>, ) -> InteractionResponseBuilder<ChannelMessage>
pub fn tts(self, tts: bool) -> Self
pub fn embed(self, embed: Embed) -> InteractionResponseBuilder<ChannelMessage>
pub fn allowed_mentions(self, allowed_mentions: AllowedMentions) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for InteractionResponseBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for InteractionResponseBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for InteractionResponseBuilder<State>where
State: Send,
impl<State> Sync for InteractionResponseBuilder<State>where
State: Sync,
impl<State> Unpin for InteractionResponseBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for InteractionResponseBuilder<State>where
State: UnwindSafe,
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