summary refs log tree commit diff
path: root/src/system/plugin/edit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/plugin/edit.rs')
-rw-r--r--src/system/plugin/edit.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/system/plugin/edit.rs b/src/system/plugin/edit.rs
index bbd5801..2edc504 100644
--- a/src/system/plugin/edit.rs
+++ b/src/system/plugin/edit.rs
@@ -1,6 +1,5 @@
 use async_trait::async_trait;
 use regex::RegexBuilder;
-use twilight_model::channel::message::MessageReference;
 use twilight_model::id::{marker::ChannelMarker, Id};
 use twilight_model::channel::Message;
 use crate::system::{log::Logger, types::{Response, System}};
@@ -19,8 +18,8 @@ impl Edit {
 impl<'system> SeancePlugin<'system> for Edit {
     fn get_commands(&self) -> Vec<PluginCommand> {
         vec![
-            PluginCommand::Long("edit"),
-            PluginCommand::Short("s"),
+            PluginCommand::Word("edit"),
+            PluginCommand::Char("s"),
         ]
     }
 
@@ -37,8 +36,8 @@ impl<'system> SeancePlugin<'system> for Edit {
         } {
             if let Some(authoring_member) = system.get_member_by_id(edit_target.author.id).await {
                 if let Some(edit_contents) = match command {
-                    PluginCommand::Long("edit") => Some(args.join(" ")),
-                    PluginCommand::Short("s") => async {
+                    PluginCommand::Word("edit") => Some(args.join(" ")),
+                    PluginCommand::Char("s") => async {
                         let replacement_command = args.join(" ");
                         let separator = replacement_command.chars().nth(1).unwrap();
                         let parts: Vec<&str> = replacement_command.split(separator).collect();