diff options
Diffstat (limited to 'src/system/plugin/prefixes.rs')
-rw-r--r-- | src/system/plugin/prefixes.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/system/plugin/prefixes.rs b/src/system/plugin/prefixes.rs index 42d8631..55a48d3 100644 --- a/src/system/plugin/prefixes.rs +++ b/src/system/plugin/prefixes.rs @@ -3,17 +3,23 @@ use twilight_model::id::{marker::ChannelMarker, Id}; use twilight_model::channel::Message; use crate::system::{log::Logger, types::{Response, System}}; -use super::SeancePlugin; +use super::{PluginCommand, SeancePlugin}; pub struct ProxyPrefixes; +impl ProxyPrefixes { + pub fn new() -> Self { + Self + } +} + #[async_trait] impl<'system> SeancePlugin<'system> for ProxyPrefixes { - fn get_commands(&self) -> Vec<&'static str> { + fn get_commands(&self) -> Vec<PluginCommand> { vec![] } - async fn handle_command<'message>(&self, _logger: &'system Logger, _system: &'system System, _message: &'message Message, args: Vec<&'message str>) { + async fn handle_command<'message>(&self, _logger: &'system Logger, _system: &'system System, _message: &'message Message, _command: PluginCommand, _args: Vec<&'message str>) { unreachable!("Prefix plugin has no commands") } |