pub struct UpdateMessageBuilder(/* private fields */);Available on crate feature
builder only.Expand description
Builder for a InteractionResponse of type InteractionResponseType::UpdateMessage.
Implementations§
Source§impl UpdateMessageBuilder
impl UpdateMessageBuilder
Sourcepub fn build(self) -> InteractionResponse
pub fn build(self) -> InteractionResponse
Builds the InteractionResponse.
Sourcepub fn allowed_mentions(self, allowed_mentions: AllowedMentions) -> Self
pub fn allowed_mentions(self, allowed_mentions: AllowedMentions) -> Self
Sets the allowed mentions filter.
Defaults to no filter.
Sourcepub fn attachments(
self,
attachments: impl IntoIterator<Item = Attachment>,
) -> Self
pub fn attachments( self, attachments: impl IntoIterator<Item = Attachment>, ) -> Self
Sets the attachments.
Defaults to no attachments.
Sourcepub fn components(
self,
components: impl IntoIterator<Item = impl Into<Component>>,
) -> Self
pub fn components( self, components: impl IntoIterator<Item = impl Into<Component>>, ) -> Self
Sets the components.
Defaults to no components.
Sourcepub fn content(self, content: impl Into<String>) -> Self
pub fn content(self, content: impl Into<String>) -> Self
Sets the content.
Defaults to no content.
Sourcepub fn embeds(self, embeds: impl IntoIterator<Item = Embed>) -> Self
pub fn embeds(self, embeds: impl IntoIterator<Item = Embed>) -> Self
Sets the embeds.
Defaults to no embeds.
Sourcepub fn flags(self, flags: MessageFlags) -> Self
pub fn flags(self, flags: MessageFlags) -> Self
Sets the message flags.
Defaults to no flags.
Trait Implementations§
Source§impl Clone for UpdateMessageBuilder
impl Clone for UpdateMessageBuilder
Source§fn clone(&self) -> UpdateMessageBuilder
fn clone(&self) -> UpdateMessageBuilder
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 Debug for UpdateMessageBuilder
impl Debug for UpdateMessageBuilder
Source§impl Default for UpdateMessageBuilder
impl Default for UpdateMessageBuilder
Source§fn default() -> UpdateMessageBuilder
fn default() -> UpdateMessageBuilder
Returns the “default value” for a type. Read more
Source§impl From<UpdateMessageBuilder> for InteractionResponse
impl From<UpdateMessageBuilder> for InteractionResponse
Source§fn from(builder: UpdateMessageBuilder) -> Self
fn from(builder: UpdateMessageBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateMessageBuilder
impl RefUnwindSafe for UpdateMessageBuilder
impl Send for UpdateMessageBuilder
impl Sync for UpdateMessageBuilder
impl Unpin for UpdateMessageBuilder
impl UnsafeUnpin for UpdateMessageBuilder
impl UnwindSafe for UpdateMessageBuilder
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