Fix typos
Some checks failed
/ check_lfs (pull_request) Successful in 5s
/ lint_fmt (pull_request) Failing after 14s
/ lint_clippy (pull_request) Failing after 11s
/ build (pull_request) Has been skipped

This commit is contained in:
Roman Moisieiev 2025-09-11 09:12:57 +01:00
parent 7b5626c279
commit 4b4e5cb289
16 changed files with 50 additions and 62 deletions

View file

@ -146,7 +146,7 @@ pub mod tools {
use sqlx::{Pool, Sqlite};
pub async fn on_role_change(db: &Pool<Sqlite>, ctx: &Context, new_data: Member) {
// check if the role changed is part of the oens for this server
// check if the role changed is part of the ones for this server
if let Ok(role_adders) = sqlx::query_as::<_, RoleAdder>(
r#"
SELECT *
@ -162,7 +162,7 @@ pub mod tools {
let mut roles_remove = vec![];
for role_adder in role_adders {
// if the user has both A dnd B give them C
// if the user has both A and B give them C
if new_data.roles.contains(&role_adder.role_a) && new_data.roles.contains(&role_adder.role_b) && !new_data.roles.contains(&role_adder.role_c)
{
roles_add.push(role_adder.role_c);