made the missing perms send a message (since the webhook responses bypass perms)

This commit is contained in:
2021-11-18 21:05:49 +00:00
parent c953bc0cd3
commit 4f9eb58c16
4 changed files with 20 additions and 22 deletions

View File

@ -23,8 +23,6 @@ lazy_static! {
env!("WEBHOOK_AVATAR"),
)
.into();
pub static ref REGEX_CHANNEL: Regex = Regex::new(r#"^\s*<#(\d+)>\s*$"#).unwrap();
pub static ref REGEX_ROLE: Regex = Regex::new(r#"<@&(\d+)>"#).unwrap();
pub static ref REGEX_CHANNEL_USER: Regex = Regex::new(r#"\s*<(#|@)(?:!)?(\d+)>\s*"#).unwrap();
pub static ref SUBSCRIPTION_ROLES: HashSet<u64> = HashSet::from_iter(
env::var("SUBSCRIPTION_ROLES")