Skip to main content

decode_message_reference

Function decode_message_reference 

Source
pub fn decode_message_reference(reference: &str) -> Option<Vec<u8>>
Expand description

Decodes a message id that a reply, reaction, or deletion references. Anything other than 64 hex characters, in either case, is not an id. hex::decode strips a 0x prefix, so the decoded length is checked too.