pub fn message_json_len(content: &str, embeds: &[Embed]) -> usizeExpand description
The bytes of a message’s content and embeds as JSON, counted against
MESSAGE_JSON_MAX.
Writing a parsed value never takes more bytes than the text it was read from (strings,
numbers and keys come out in their shortest form, absent and default fields stay absent),
so the content and embeds of one message.send are always within the limit.