mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-06 12:08:09 +00:00
Fixed message_embed fmt.Sprintf bug
This commit is contained in:
parent
54503f5e58
commit
b892c87e2e
|
@ -98,7 +98,7 @@ func (e *Embed) Validate() error {
|
|||
|
||||
if len(field.Value) > 1024 {
|
||||
return &ErrOverbound{len(field.Value), 1024,
|
||||
fmt.Sprintf("field %s value", i)}
|
||||
fmt.Sprintf("field %d value", i)}
|
||||
}
|
||||
|
||||
sum += len(field.Name) + len(field.Value)
|
||||
|
|
Loading…
Reference in a new issue