diff options
author | Ashelyn Rose <git@ashen.earth> | 2025-03-01 18:38:46 -0700 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2025-03-01 18:38:46 -0700 |
commit | dc69de9e3535e3ca49f6b74c54d2c32d218c2d81 (patch) | |
tree | df97a4452ac0e68c4b73e774d5bab7e4158eef0c /src/system/plugin/edit.rs | |
parent | df8e78aded7ce2c8653e81edeaaa026e7c44c713 (diff) |
Clean up warnings
Diffstat (limited to 'src/system/plugin/edit.rs')
-rw-r--r-- | src/system/plugin/edit.rs | 9 |
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(); |