basis of restrict command

This commit is contained in:
jude 2020-09-01 19:00:56 +01:00
parent bb4c96a628
commit 7e28d14a81

View File

@ -25,6 +25,8 @@ use crate::{
lazy_static! { lazy_static! {
static ref REGEX_CHANNEL: Regex = Regex::new(r#"^\s*<#(\d+)>\s*$"#).unwrap(); 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] #[command]
@ -142,3 +144,11 @@ async fn prefix(ctx: &Context, msg: &Message, args: String) -> CommandResult {
Ok(()) Ok(())
} }
#[command]
#[supports_dm(false)]
#[permission_level(Restricted)]
async fn restrict(ctx: &Context, msg: &Message, args: String) -> CommandResult {
Ok(())
}