diff --git a/README.md b/README.md index a7ac666..cbbe507 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ verified role! Verifies you or tells you how to verify. -### /re-verify +### /verify-all Will batch verify everyone on the server. **Admin only** diff --git a/src/commands.rs b/src/commands.rs index 127ac50..1b480d0 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -93,7 +93,7 @@ pub async fn verify(ctx: &Context, command: CommandInteraction) -> Result<()> { } /// Re-verifies an entire server (This only adds verified people), also invalidates guild role cache -pub async fn re_verify(ctx: &Context, command: CommandInteraction) -> Result<()> { +pub async fn verify_all(ctx: &Context, command: CommandInteraction) -> Result<()> { let guild_id = command.guild_id.unwrap(); { let mut cache = api::GET_ROLE_ID.lock().await; diff --git a/src/main.rs b/src/main.rs index c3d7b53..7ffc0ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ use serenity::model::Permissions; use serenity::prelude::*; use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver, UnboundedSender}; -use crate::commands::{re_verify, setup, silent_verify, verify}; +use crate::commands::{setup, silent_verify, verify, verify_all}; mod commands; @@ -27,8 +27,8 @@ fn create_commands() -> Vec { CreateCommand::new("verify") .description("Verifies you and gives you a nice role!") .dm_permission(false), - CreateCommand::new("re-verify") - .description("Re-verifies everyone on the server.") + CreateCommand::new("verify-all") + .description("Verifies everyone on the server.") .dm_permission(false) .default_member_permissions(Permissions::MANAGE_ROLES), CreateCommand::new("setup") @@ -102,9 +102,9 @@ async fn dispatch_commands(ctx: &Context, command: CommandInteraction) -> Result "verify" => verify(ctx, command) .await .context("Failed to run verify command."), - "re-verify" => re_verify(ctx, command) + "verify-all" => verify_all(ctx, command) .await - .context("Ran re-verify command."), + .context("Ran verify-all command."), "setup" => setup(ctx, command) .await .context("Failed to run setup command"),