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.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/system/plugin.rs b/src/system/plugin.rs
index 379606d..8e6066f 100644
--- a/src/system/plugin.rs
+++ b/src/system/plugin.rs
@@ -9,7 +9,7 @@ use std::{collections::HashMap, sync::Arc};
 use async_trait::async_trait;
 
 use edit::Edit;
-use twilight_model::{channel::{Channel, Message}, id::{marker::ChannelMarker, Id}};
+use twilight_model::{channel::Message, id::{marker::ChannelMarker, Id}};
 
 use super::log::Logger;
 use crate::system::types::{System, Response};
@@ -19,8 +19,8 @@ pub use autoproxy::Autoproxy;
 
 #[derive(Copy, Clone, Debug)]
 pub enum PluginCommand {
-    Long(&'static str),
-    Short(&'static str),
+    Word(&'static str),
+    Char(&'static str),
 }
 
 #[async_trait]
@@ -46,8 +46,8 @@ pub fn get_plugins<'system>() -> (Vec<Arc<Box<dyn SeancePlugin<'system>>>>, Hash
             let commands = plugin.get_commands();
             commands.into_iter().map(|command| {
                 match command {
-                    PluginCommand::Long(command_word) => (command_word, (command, plugin.clone())),
-                    PluginCommand::Short(command_char) => (command_char, (command, plugin.clone())),
+                    PluginCommand::Word(command_word) => (command_word, (command, plugin.clone())),
+                    PluginCommand::Char(command_char) => (command_char, (command, plugin.clone())),
                 }
             })
         })