Skip to content

Commit

Permalink
Rename re-verify to verify-all
Browse files Browse the repository at this point in the history
  • Loading branch information
miam-miam committed Mar 6, 2024
1 parent ae46538 commit 1f22dc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -27,8 +27,8 @@ fn create_commands() -> Vec<CreateCommand> {
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")
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 1f22dc0

Please sign in to comment.