Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update embeds.md #1598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion guide/popular-topics/embeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,7 @@ There are a few limits to be aware of while planning your embeds due to the API'
- The sum of all characters from all embed structures in a message must not exceed 6000 characters
- 10 embeds can be sent per message

Source: [Discord API documentation](https://discord.com/developers/docs/resources/channel#embed-object-embed-limits)
To display some special characters such as asterisks (*), underscores (_), and tildes (~) in text fields, they must be escaped with the \ character. There is no plan to provide documentation on Discord's sanitization process [(Source)](https://github.com/discord/discord-api-docs/issues/1286). The Message.content API states:
- "Discord may strip certain characters from message content, like invalid unicode characters or characters which cause unexpected message formatting. If you are passing user-generated strings into message content, consider sanitizing the data to prevent unexpected behavior. For example, to prevent unexpected mentions you could consider stripping @ characters or placing a zero-width space (U-200B) after them."

Source: [Discord API documentation](https://discord.com/developers/docs/resources/message#embed-object-embed-limits)