Function command::object::message_json_len
zaun_community_protocol::command::object::message_json_len · Function
pub fn message_json_len(content: &str, embeds: &[Embed]) -> usizeThe 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.