From 7e28d14a81129e2030dbab206dda1d81f2fa6acf Mon Sep 17 00:00:00 2001 From: jude Date: Tue, 1 Sep 2020 19:00:56 +0100 Subject: [PATCH] basis of restrict command --- src/commands/moderation_cmds.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commands/moderation_cmds.rs b/src/commands/moderation_cmds.rs index fb284e5..607231b 100644 --- a/src/commands/moderation_cmds.rs +++ b/src/commands/moderation_cmds.rs @@ -25,6 +25,8 @@ use crate::{ lazy_static! { static ref REGEX_CHANNEL: Regex = Regex::new(r#"^\s*<#(\d+)>\s*$"#).unwrap(); + static ref REGEX_ROLE: Regex = Regex::new(r#"<@&([0-9]+)>"#).unwrap(); + static ref REGEX_COMMANDS: Regex = Regex::new(r#"([a-z]+)"#).unwrap(); } #[command] @@ -142,3 +144,11 @@ async fn prefix(ctx: &Context, msg: &Message, args: String) -> CommandResult { Ok(()) } + +#[command] +#[supports_dm(false)] +#[permission_level(Restricted)] +async fn restrict(ctx: &Context, msg: &Message, args: String) -> CommandResult { + + Ok(()) +}