From fa17978add7ce2935c7ba820ad5bf001a5be2e68 Mon Sep 17 00:00:00 2001 From: jude Date: Mon, 26 Oct 2020 19:50:51 +0000 Subject: [PATCH] fix for a number of commands that had managable permissions not being managable --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/moderation_cmds.rs | 2 +- src/commands/reminder_cmds.rs | 12 ++++++------ src/commands/todo_cmds.rs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6ae3209..a19507e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.1.0" +version = "1.1.1" dependencies = [ "Inflector", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 51dd271..65f067b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.1.0" +version = "1.1.1" authors = ["jellywx "] edition = "2018" diff --git a/src/commands/moderation_cmds.rs b/src/commands/moderation_cmds.rs index b57baea..d8d88d7 100644 --- a/src/commands/moderation_cmds.rs +++ b/src/commands/moderation_cmds.rs @@ -339,7 +339,7 @@ WHERE } } -#[command] +#[command("alias")] #[supports_dm(false)] #[permission_level(Managed)] async fn alias(ctx: &Context, msg: &Message, args: String) { diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index e21977f..7bf9613 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -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 diff --git a/src/commands/todo_cmds.rs b/src/commands/todo_cmds.rs index c2a97e3..ff55b08 100644 --- a/src/commands/todo_cmds.rs +++ b/src/commands/todo_cmds.rs @@ -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) {