summaryrefslogtreecommitdiff
path: root/src/handlers/event/mod.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-02 07:00:24 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch)
tree1d2b5ac5c04a092756180722358d929feeae50aa /src/handlers/event/mod.rs
parentac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff)
feat: add per guild configuration
Diffstat (limited to 'src/handlers/event/mod.rs')
-rw-r--r--src/handlers/event/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/handlers/event/mod.rs b/src/handlers/event/mod.rs
index a587c77..6dd5fe4 100644
--- a/src/handlers/event/mod.rs
+++ b/src/handlers/event/mod.rs
@@ -4,6 +4,7 @@ use color_eyre::eyre::{Report, Result};
use poise::serenity_prelude as serenity;
use poise::{Event, FrameworkContext};
+mod guild;
mod message;
mod pinboard;
mod reactboard;
@@ -27,6 +28,12 @@ pub async fn handle(
Event::ReactionAdd { add_reaction } => reactboard::handle(ctx, add_reaction, data).await?,
+ Event::GuildCreate { guild, is_new } => guild::handle_create(guild, is_new, data).await?,
+ Event::GuildDelete {
+ incomplete,
+ full: _,
+ } => guild::handle_delete(incomplete, data).await?,
+
_ => {}
}