aboutsummaryrefslogtreecommitdiff
path: root/src/client/dispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/dispatch.rs')
-rw-r--r--src/client/dispatch.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs
index 92f3624..a629f33 100644
--- a/src/client/dispatch.rs
+++ b/src/client/dispatch.rs
@@ -665,6 +665,16 @@ pub fn dispatch(event: Result<Event>,
});
}
},
+ Ok(Event::WebhookUpdate(event)) => {
+ if let Some(ref handler) = handler!(on_webhook_update, event_store) {
+ let context = context(None, conn, login_type);
+ let handler = handler.clone();
+
+ thread::spawn(move || {
+ (handler)(context, event.guild_id, event.channel_id);
+ });
+ }
+ },
Err(_why) => {},
}
}