pub struct MessageBuilder {
pub allowed_mentions: Option<AllowedMentions>,
pub attachments: Option<Vec<Attachment>>,
pub choices: Option<Vec<CommandOptionChoice>>,
pub components: Option<Vec<Component>>,
pub content: Option<String>,
pub custom_id: Option<String>,
pub embeds: Option<Vec<Embed>>,
pub flags: Option<MessageFlags>,
pub title: Option<String>,
pub tts: Option<bool>,
}Fields§
§allowed_mentions: Option<AllowedMentions>§attachments: Option<Vec<Attachment>>§choices: Option<Vec<CommandOptionChoice>>§components: Option<Vec<Component>>§content: Option<String>§custom_id: Option<String>§embeds: Option<Vec<Embed>>§flags: Option<MessageFlags>§title: Option<String>§tts: Option<bool>Implementations§
Source§impl MessageBuilder
impl MessageBuilder
pub fn content<S: ToOwnedString>(&mut self, content: S) -> &mut Self
pub fn custom_id<S: ToOwnedString>(&mut self, custom_id: S) -> &mut Self
pub fn title<S: ToOwnedString>(&mut self, title: S) -> &mut Self
Trait Implementations§
Source§impl Debug for MessageBuilder
impl Debug for MessageBuilder
Source§impl Default for MessageBuilder
impl Default for MessageBuilder
Source§fn default() -> MessageBuilder
fn default() -> MessageBuilder
Returns the “default value” for a type. Read more
Source§impl From<MessageBuilder> for InteractionResponseData
impl From<MessageBuilder> for InteractionResponseData
Source§fn from(builder: MessageBuilder) -> Self
fn from(builder: MessageBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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