fix for a number of commands that had managable permissions not being managable
This commit is contained in:
parent
84e4952752
commit
fa17978add
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1175,7 +1175,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "reminder_rs"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
dependencies = [
|
||||
"Inflector",
|
||||
"async-trait",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reminder_rs"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
authors = ["jellywx <judesouthworth@pm.me>"]
|
||||
edition = "2018"
|
||||
|
||||
|
@ -339,7 +339,7 @@ WHERE
|
||||
}
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("alias")]
|
||||
#[supports_dm(false)]
|
||||
#[permission_level(Managed)]
|
||||
async fn alias(ctx: &Context, msg: &Message, args: String) {
|
||||
|
@ -363,7 +363,7 @@ struct LookReminder {
|
||||
channel: u64,
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("look")]
|
||||
#[permission_level(Managed)]
|
||||
async fn look(ctx: &Context, msg: &Message, args: String) {
|
||||
let pool = ctx
|
||||
@ -477,7 +477,7 @@ LIMIT
|
||||
}
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("del")]
|
||||
#[permission_level(Managed)]
|
||||
async fn delete(ctx: &Context, msg: &Message, _args: String) {
|
||||
let pool = ctx
|
||||
@ -643,7 +643,7 @@ INSERT INTO events (event_name, bulk_count, guild_id, user_id) VALUES ('delete',
|
||||
}
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("timer")]
|
||||
#[permission_level(Managed)]
|
||||
async fn timer(ctx: &Context, msg: &Message, args: String) {
|
||||
fn time_difference(start_time: NaiveDateTime) -> String {
|
||||
@ -865,13 +865,13 @@ fn generate_uid() -> String {
|
||||
.join("")
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("remind")]
|
||||
#[permission_level(Managed)]
|
||||
async fn remind(ctx: &Context, msg: &Message, args: String) {
|
||||
remind_command(ctx, msg, args, RemindCommand::Remind).await;
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("interval")]
|
||||
#[permission_level(Managed)]
|
||||
async fn interval(ctx: &Context, msg: &Message, args: String) {
|
||||
remind_command(ctx, msg, args, RemindCommand::Interval).await;
|
||||
@ -1011,7 +1011,7 @@ async fn remind_command(ctx: &Context, msg: &Message, args: String, command: Rem
|
||||
let _ = msg.channel_id.say(&ctx, &str_response).await;
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("natural")]
|
||||
#[permission_level(Managed)]
|
||||
async fn natural(ctx: &Context, msg: &Message, args: String) {
|
||||
let pool = ctx
|
||||
|
@ -397,7 +397,7 @@ async fn todo_user(ctx: &Context, msg: &Message, args: String) {
|
||||
.await;
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("todos")]
|
||||
#[supports_dm(false)]
|
||||
#[permission_level(Managed)]
|
||||
async fn todo_channel(ctx: &Context, msg: &Message, args: String) {
|
||||
@ -416,7 +416,7 @@ async fn todo_channel(ctx: &Context, msg: &Message, args: String) {
|
||||
.await;
|
||||
}
|
||||
|
||||
#[command]
|
||||
#[command("todos")]
|
||||
#[supports_dm(false)]
|
||||
#[permission_level(Managed)]
|
||||
async fn todo_guild(ctx: &Context, msg: &Message, args: String) {
|
||||
|
Loading…
Reference in New Issue
Block a user