nosedrum v0.1.0 Nosedrum.Helpers
User interaction helpers that don't fit into their own module.
Link to this section Summary
Functions
Escape @everyone
and @here
mentions in the given content
with a zero-width space character
Link to this section Functions
Link to this function
escape_server_mentions(content)
Escape @everyone
and @here
mentions in the given content
with a zero-width space character.
Example
iex> Nosedrum.Helpers.escape_server_mentions("hello world")
"hello world"
iex> Nosedrum.Helpers.escape_server_mentions("hello @everyone @here")
"hello @everyone @here" # No space to be seen, but no mention either!