1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

discord: Raise embed description limit to 4096 characters (#243)

This commit is contained in:
Starshine System 2021-07-11 22:19:54 +02:00 committed by GitHub
parent 29a3094a75
commit 9651328b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,8 +83,8 @@ func (e *Embed) Validate() error {
return &OverboundError{len(e.Title), 256, "title"}
}
if len(e.Description) > 2048 {
return &OverboundError{len(e.Description), 2048, "description"}
if len(e.Description) > 4096 {
return &OverboundError{len(e.Description), 4096, "description"}
}
if len(e.Fields) > 25 {