Skip to main content

Module reply

Module reply 

Source
Expand description

Assembly of the messages Babyrite posts back to the requester.

Everything the bot says goes through build_messages, so the reply policy โ€” what is allowed to be mentioned, and what rides in which message โ€” is decided in one place instead of at each call site.

Re-exportsยง

use crate::expand::ExpandedContent; ๐Ÿ”’
use crate::utils::defuse_code_fences; ๐Ÿ”’
use crate::utils::fence_info; ๐Ÿ”’
use twilight_model::channel::message::AllowedMentions; ๐Ÿ”’
use twilight_model::channel::message::Embed; ๐Ÿ”’
use twilight_model::id::Id; ๐Ÿ”’
use twilight_model::id::marker::MessageMarker; ๐Ÿ”’

Structsยง

OutgoingMessage
A message to post, independent of the HTTP request that sends it.

Functionsยง

build_messages
Builds the messages answering the message request_id, in the order they are sent.