-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add embed validation for creating and updating messages. This checks the the author name, description, field names, field values, footer text, and title lengths to ensure they aren't too long. The total number of fields is checked as well as the total combined length of all of the above. This addresses comment <#167 (comment)>. Limits are referenced in the documentation to point to <https://discord.com/developers/docs/resources/channel#embed-limits>. Signed-off-by: Vivian Hellyer <vivian@hellyer.dev>
- Loading branch information
1 parent
a62838f
commit 81d8313
Showing
5 changed files
with
496 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.