Expand description
Event handling module for Discord events.
handle is spawned once per gateway event received by the shard in
main, and dispatches it to the handling it needs.
Re-exportsยง
use crate::cache::invalidate_channel;๐use crate::cache::invalidate_guild_roles;๐use crate::config::BabyriteConfig;๐use crate::context::BotContext;๐use crate::expand::EXPANDERS;๐use crate::expand::ExpandContext;๐use crate::expand::ExpandedContent;๐use futures_util::future::join_all;๐use std::sync::Arc;๐use tracing::Instrument;๐use twilight_gateway::Event;๐use twilight_model::channel::Channel;๐use twilight_model::channel::Message;๐use twilight_model::id::Id;๐use twilight_model::id::marker::ChannelMarker;๐use twilight_model::id::marker::MessageMarker;๐
Functionsยง
- handle
- Handles one gateway event.
- on_
channel_ ๐change - on_
message ๐ - send_
expanded_ ๐contents - Sends expanded contents as a reply to the original message.