26 lines
491 B
Rust
26 lines
491 B
Rust
|
use regex_command_attr::command;
|
||
|
|
||
|
use serenity::{
|
||
|
client::Context,
|
||
|
model::{
|
||
|
channel::{
|
||
|
Message,
|
||
|
},
|
||
|
},
|
||
|
framework::standard::CommandResult,
|
||
|
};
|
||
|
|
||
|
use crate::SQLPool;
|
||
|
|
||
|
#[command]
|
||
|
#[supports_dm(false)]
|
||
|
#[permission_level(Restricted)]
|
||
|
async fn blacklist(ctx: &Context, msg: &Message, args: String) -> CommandResult {
|
||
|
let pool = ctx.data.read().await
|
||
|
.get::<SQLPool>().cloned().expect("Could not get SQLPool from data");
|
||
|
|
||
|
if
|
||
|
|
||
|
Ok(())
|
||
|
}
|