summary refs log tree commit diff
path: root/src/system/plugin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/plugin.rs')
-rw-r--r--src/system/plugin.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system/plugin.rs b/src/system/plugin.rs
index c458fd4..d3c6764 100644
--- a/src/system/plugin.rs
+++ b/src/system/plugin.rs
@@ -4,6 +4,8 @@ mod prefixes;
 use async_trait::async_trait;
 
 use twilight_model::{channel::{Channel, Message}, id::{marker::ChannelMarker, Id}};
+
+use super::log::Logger;
 use crate::system::types::{System, Response};
 
 pub use prefixes::ProxyPrefixes;
@@ -11,11 +13,11 @@ pub use autoproxy::Autoproxy;
 
 #[async_trait]
 pub trait SeancePlugin {
-    async fn handle_command(&self, system: &System, message: &Message) -> CommandOutcome;
+    async fn handle_command(&self, logger: &Logger, system: &System, message: &Message) -> CommandOutcome;
 
-    async fn handle_message(&self, system: &System, message: &Message, response: &mut Response);
+    async fn handle_message(&self, logger: &Logger, system: &System, message: &Message, response: &mut Response);
 
-    async fn post_response(&self, system: &System, message: &Message, channel: Id<ChannelMarker>, response: &Response);
+    async fn post_response(&self, logger: &Logger, system: &System, message: &Message, channel: Id<ChannelMarker>, response: &Response);
 }
 
 pub enum CommandOutcome {