summaryrefslogtreecommitdiff
path: root/src/handlers/event/mod.rs
diff options
context:
space:
mode:
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?,
+
_ => {}
}