From df8e78aded7ce2c8653e81edeaaa026e7c44c713 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 1 Mar 2025 18:29:08 -0700 Subject: Edit command --- src/system/plugin/prefixes.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/system/plugin/prefixes.rs') 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 { 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") } -- cgit 1.4.1