Struct serenity::builder::CreateInteractionResponseData [−][src]
Tuple Fields
0: HashMap<&'static str, Value>
Implementations
Set whether the message is text-to-speech.
Think carefully before setting this to true
.
Defaults to false
.
Set the content of the message.
Note: Message contents must be under 2000 unicode code points.
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 message.
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 Send for CreateInteractionResponseData
impl Sync for CreateInteractionResponseData
impl Unpin for CreateInteractionResponseData
impl UnwindSafe for CreateInteractionResponseData
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