Skip to main content

Module event

Module event 

Source
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.