diff options
| author | Austin Hellyer <[email protected]> | 2016-11-12 11:21:12 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-12 11:21:12 -0800 |
| commit | e9cdc50f68ad36d78b5fcc1c0dd6463274828eca (patch) | |
| tree | c6b0bd54bae9f18906a47fd85402faea5345a1cd /examples | |
| parent | Add delete_message_reactions + register event (diff) | |
| download | serenity-e9cdc50f68ad36d78b5fcc1c0dd6463274828eca.tar.xz serenity-e9cdc50f68ad36d78b5fcc1c0dd6463274828eca.zip | |
Add a check for message content length
Before sending a request to Discord, ensure that a message's content on
non-HTTP functions and methods meets the required length. If it exceeds
the limit, then return a
`Error::Client(ClientError::MessageTooLong(u64))`, containing the number
of unicode code points exceeding the limit.
Note that directly using the HTTP methods does not impose this limit.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions