fmt: re-organise the regular data request

This commit is contained in:
silver 2024-10-28 01:29:01 +00:00
parent 3927734083
commit 273c58d035
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
3 changed files with 12 additions and 9 deletions

View file

@ -6,7 +6,7 @@ use serenity::{
prelude::{command::CommandOptionType, interaction::application_command::CommandDataOptionValue},
},
};
use skynet_discord_bot::common::wolves::get_data::get_wolves_cns;
use skynet_discord_bot::common::wolves::cns::get_wolves;
use skynet_discord_bot::{is_admin, set_roles::update_server};
use sqlx::{Error, Pool, Sqlite};
use skynet_discord_bot::common::database::{get_server_config, DataBase, Servers};
@ -216,7 +216,7 @@ async fn add_server(db: &Pool<Sqlite>, ctx: &Context, server: &Servers) -> Resul
// update all users
if update {
// handle wolves api here
get_wolves_cns(ctx).await;
get_wolves(ctx).await;
let mut roles_remove = vec![];
if current_remove {