Struct serenity::builder::EditWebhookMessage [−][src]
Expand description
A builder to specify the fields to edit in an existing Webhook
’s message.
Tuple Fields
0: HashMap<&'static str, Value>
Implementations
Set the content of the message.
Note: Message contents must be under 2000 unicode code points.
Set the embeds associated with the message.
This should be used in combination with Embed::fake
, creating one
or more fake embeds to send to the API.
Examples
Refer to struct-level documentation of ExecuteWebhook
for an example
on how to use embeds.
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.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EditWebhookMessage
impl Send for EditWebhookMessage
impl Sync for EditWebhookMessage
impl Unpin for EditWebhookMessage
impl UnwindSafe for EditWebhookMessage
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