Struct serenity::builder::CreateInteractionResponseFollowup [−][src]
pub struct CreateInteractionResponseFollowup<'a>(pub HashMap<&'static str, Value>, pub Vec<AttachmentType<'a>>);
Tuple Fields
0: HashMap<&'static str, Value>
1: Vec<AttachmentType<'a>>
Implementations
Set the content of the message.
Note: Message contents must be under 2000 unicode code points.
Override the default username of the webhook
Override the default avatar of the webhook
Set whether the message is text-to-speech.
Think carefully before setting this to true
.
Defaults to false
.
Appends a file to the message.
pub fn add_files<T: Into<AttachmentType<'a>>, It: IntoIterator<Item = T>>(
&mut self,
files: It
) -> &mut Self
pub fn add_files<T: Into<AttachmentType<'a>>, It: IntoIterator<Item = T>>(
&mut self,
files: It
) -> &mut Self
Appends a list of files to the message.
pub fn files<T: Into<AttachmentType<'a>>, It: IntoIterator<Item = T>>(
&mut self,
files: It
) -> &mut Self
pub fn files<T: Into<AttachmentType<'a>>, It: IntoIterator<Item = T>>(
&mut self,
files: It
) -> &mut Self
Sets a list of files to include in the message.
Calling this multiple times will overwrite the file list.
To append files, call Self::add_file
or Self::add_files
instead.
pub fn create_embed<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateEmbed) -> &mut CreateEmbed,
pub fn create_embed<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateEmbed) -> &mut CreateEmbed,
Create an embed for the message.
Adds an embed to the message.
Sets a list of embeds to include in the message.
Calling this multiple times will overwrite the embed list.
To append embeds, call Self::add_embed
instead.
pub fn allowed_mentions<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateAllowedMentions) -> &mut CreateAllowedMentions,
pub fn allowed_mentions<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateAllowedMentions) -> &mut CreateAllowedMentions,
Set the allowed mentions for the message.
Sets the flags for the response.
pub fn components<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateComponents) -> &mut CreateComponents,
pub fn components<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateComponents) -> &mut CreateComponents,
Creates components for this message.
Sets the components of this message.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CreateInteractionResponseFollowup<'a>
impl<'a> Send for CreateInteractionResponseFollowup<'a>
impl<'a> Sync for CreateInteractionResponseFollowup<'a>
impl<'a> Unpin for CreateInteractionResponseFollowup<'a>
impl<'a> !UnwindSafe for CreateInteractionResponseFollowup<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more