Struct serenity::utils::ContentSafeOptions [−][src]
pub struct ContentSafeOptions { /* fields omitted */ }
Expand description
Struct that allows to alter content_safe
’s behaviour.
Implementations
content_safe
will replace role mentions (<@&{id}>
) with its name
prefixed with @
(@rolename
) or with @deleted-role
if the
identifier is invalid.
If set to true, content_safe
will replace user mentions
(<@!{id}>
or <@{id}>
) with the user’s name prefixed with @
(@username
) or with @invalid-user
if the identifier is invalid.
If set to true, content_safe
will replace channel mentions
(<#{id}>
) with the channel’s name prefixed with #
(#channelname
) or with #deleted-channel
if the identifier is
invalid.
If set to true, if content_safe
replaces a user mention it will
add their four digit discriminator with a preceeding #
,
turning @username
to @username#discriminator
.
If set, content_safe
will replace a user mention with the user’s
display name in passed guild
.
If set, content_safe
will replace @here
with a non-pinging
alternative.
If set, content_safe
will replace @everyone
with a non-pinging
alternative.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ContentSafeOptions
impl Send for ContentSafeOptions
impl Sync for ContentSafeOptions
impl Unpin for ContentSafeOptions
impl UnwindSafe for ContentSafeOptions
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